2024-06-24 16:24:21 +00:00
|
|
|
# Modules common to all systems
|
2024-08-23 18:15:54 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}:
|
2024-06-24 16:24:21 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
# Install ZSH for all users
|
|
|
|
programs.zsh.enable = true;
|
|
|
|
users.defaultUserShell = pkgs.zsh;
|
|
|
|
|
|
|
|
aux.system = {
|
|
|
|
packages = with pkgs; [
|
|
|
|
fastfetch # Show a neat system statistics screen when opening a terminal
|
|
|
|
nh # Nix Helper: https://github.com/viperML/nh
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-08-23 18:15:54 +00:00
|
|
|
# Allow packages from the unstable repo by using 'pkgs.unstable'
|
|
|
|
nixpkgs.overlays = [
|
|
|
|
(final: _prev: {
|
|
|
|
unstable = import inputs.nixpkgs-unstable {
|
|
|
|
system = final.system;
|
|
|
|
config.allowUnfree = true;
|
|
|
|
};
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2024-06-24 16:24:21 +00:00
|
|
|
programs = {
|
|
|
|
# Enable NH, an alternative nixos-rebuild frontend.
|
|
|
|
nh = {
|
|
|
|
enable = true;
|
|
|
|
flake = "${config.secrets.nixConfigFolder}";
|
|
|
|
};
|
|
|
|
# Do some additional Nano configuration
|
|
|
|
nano.nanorc = ''
|
|
|
|
set linenumbers
|
|
|
|
set tabsize 4
|
|
|
|
set softwrap
|
|
|
|
set autoindent
|
|
|
|
set indicator
|
|
|
|
'';
|
|
|
|
};
|
2024-07-16 17:33:58 +00:00
|
|
|
|
|
|
|
services.fail2ban.enable = true;
|
2024-06-24 16:24:21 +00:00
|
|
|
};
|
|
|
|
}
|