2024-08-24 03:52:55 -07:00
|
|
|
{
|
2024-08-24 23:58:52 -07:00
|
|
|
inputs,
|
2024-08-26 01:47:06 -07:00
|
|
|
pkgs,
|
2024-08-24 23:58:52 -07:00
|
|
|
...
|
2024-09-02 18:16:22 -07:00
|
|
|
}:
|
|
|
|
{
|
2024-08-24 23:58:52 -07:00
|
|
|
environment.systemPackages = [
|
2024-09-17 16:26:38 -07:00
|
|
|
inputs.viminal.packages.${pkgs.system}.default
|
2024-09-18 01:38:14 -07:00
|
|
|
inputs.viminal.packages.${pkgs.system}.vimg
|
2024-08-24 23:58:52 -07:00
|
|
|
];
|
|
|
|
|
2024-08-24 03:52:55 -07:00
|
|
|
security.sudo.enable = false;
|
|
|
|
|
|
|
|
security.doas = {
|
|
|
|
enable = true;
|
|
|
|
extraRules = [
|
|
|
|
{
|
2024-09-02 18:16:22 -07:00
|
|
|
users = [ "youwen" ];
|
2024-08-24 03:52:55 -07:00
|
|
|
keepEnv = true;
|
|
|
|
persist = true;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2024-09-05 19:20:37 -07:00
|
|
|
|
|
|
|
services.gnome.gnome-keyring.enable = true;
|
2024-09-17 02:13:06 -07:00
|
|
|
|
|
|
|
nix = {
|
|
|
|
settings.experimental-features = [
|
|
|
|
"nix-command"
|
|
|
|
"flakes"
|
|
|
|
];
|
2024-09-17 02:15:08 -07:00
|
|
|
optimise.automatic = true;
|
|
|
|
gc = {
|
|
|
|
automatic = true;
|
|
|
|
dates = "weekly";
|
|
|
|
options = "--delete-older-than 14d";
|
|
|
|
};
|
|
|
|
# Free up to 1GiB when there is less than 100MiB left
|
|
|
|
extraOptions = ''
|
|
|
|
min-free = ${toString (100 * 1024 * 1024)}
|
|
|
|
max-free = ${toString (1024 * 1024 * 1024)}
|
|
|
|
'';
|
2024-09-17 02:13:06 -07:00
|
|
|
};
|
2024-09-29 01:51:24 -07:00
|
|
|
# Enable CUPS to print documents.
|
|
|
|
services.printing.enable = true;
|
|
|
|
|
|
|
|
services.avahi = {
|
|
|
|
enable = true;
|
|
|
|
nssmdns4 = true;
|
|
|
|
openFirewall = true;
|
|
|
|
};
|
2024-08-24 03:52:55 -07:00
|
|
|
}
|