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-11-04 11:57:01 -08:00
|
|
|
config,
|
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-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;
|
2024-11-04 11:57:01 -08:00
|
|
|
# gc = {
|
|
|
|
# automatic = true;
|
|
|
|
# dates = "weekly";
|
|
|
|
# options = "--delete-older-than 14d";
|
|
|
|
# };
|
2024-09-17 02:15:08 -07:00
|
|
|
# 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-11-04 11:57:01 -08:00
|
|
|
|
|
|
|
programs.nh = {
|
|
|
|
enable = true;
|
|
|
|
clean.enable = true;
|
|
|
|
clean.extraArgs = "--keep-since 4d --keep 3";
|
|
|
|
flake = "/home/youwen/.config/liminalOS";
|
|
|
|
};
|
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
|
|
|
}
|