2024-06-24 12:24:21 -04:00
|
|
|
# Modules common to all systems
|
|
|
|
{ pkgs, config, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
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
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
programs = {
|
|
|
|
# Enable NH, an alternative nixos-rebuild frontend.
|
|
|
|
nh = {
|
|
|
|
enable = true;
|
|
|
|
flake = "${config.secrets.nixConfigFolder}";
|
|
|
|
|
|
|
|
# Alternative garbage collection system to nix.gc.automatic
|
|
|
|
clean = {
|
|
|
|
enable = true;
|
2024-07-25 15:45:27 -04:00
|
|
|
dates = "weekly"; # Runs at 12:00 AM on Mondays
|
|
|
|
extraArgs = "--keep-since 14d --keep 10"; # By default, keep the last 10 entries (or two weeks) of generations
|
2024-06-24 12:24:21 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
# Do some additional Nano configuration
|
|
|
|
nano.nanorc = ''
|
|
|
|
set linenumbers
|
|
|
|
set tabsize 4
|
|
|
|
set softwrap
|
|
|
|
set autoindent
|
|
|
|
set indicator
|
|
|
|
'';
|
|
|
|
};
|
2024-07-16 13:33:58 -04:00
|
|
|
|
|
|
|
services.fail2ban.enable = true;
|
2024-06-24 12:24:21 -04:00
|
|
|
};
|
|
|
|
}
|