diff options
author | Alan Pearce | 2024-04-29 20:10:36 +0200 |
---|---|---|
committer | Alan Pearce | 2024-04-29 20:10:36 +0200 |
commit | 21398bece441d9afaa8e74539d993c3e976ebce0 (patch) | |
tree | 66aa0a1e006a3b57371eaf6be05cc31ebbd9d473 /system | |
parent | 7a3f06fe4aa3a61b9d86b6aebdb404eba95d9eb5 (diff) | |
download | nixfiles-21398bece441d9afaa8e74539d993c3e976ebce0.tar.lz nixfiles-21398bece441d9afaa8e74539d993c3e976ebce0.tar.zst nixfiles-21398bece441d9afaa8e74539d993c3e976ebce0.zip |
use `nh` as a nixos-rebuild wrapper with nice output
Diffstat (limited to 'system')
-rw-r--r-- | system/settings/configuration/nix.nix | 3 | ||||
-rw-r--r-- | system/settings/user-interface.nix | 9 |
2 files changed, 11 insertions, 1 deletions
diff --git a/system/settings/configuration/nix.nix b/system/settings/configuration/nix.nix index 6b6d51b3..ff870540 100644 --- a/system/settings/configuration/nix.nix +++ b/system/settings/configuration/nix.nix @@ -1,4 +1,5 @@ { config +, lib , pkgs , ... }: { @@ -22,7 +23,7 @@ ''; gc = { - automatic = true; + automatic = lib.mkDefault true; options = "--delete-older-than 14d"; }; }; diff --git a/system/settings/user-interface.nix b/system/settings/user-interface.nix index 915c3ec4..e2784743 100644 --- a/system/settings/user-interface.nix +++ b/system/settings/user-interface.nix @@ -61,6 +61,15 @@ programs.dconf.enable = true; + programs.nh = { + enable = true; + clean = { + enable = true; + extraArgs = "--keep-since 14d"; + }; + }; + nix.gc.automatic = ! config.programs.nh.enable; + imports = [ ./services/xserver.nix ]; |