Personal-use NixOS configuration

Start using nh

+16 -9
+16 -9
modules/common/nix.nix
··· 1 + { flakeRoot, ... }: 2 + 1 3 { 2 4 nix = { 3 5 channel.enable = false; 4 - 5 - gc = { 6 - automatic = true; 7 - dates = "weekly"; 8 - 9 - persistent = true; 10 - 11 - options = "--delete-older-than 7d"; 12 - }; 13 6 14 7 optimise = { 15 8 automatic = true; ··· 27 20 }; 28 21 29 22 documentation.man.enable = false; 23 + 24 + programs.nh = { 25 + enable = true; 26 + 27 + flake = toString flakeRoot; 28 + 29 + clean = { 30 + enable = true; 31 + 32 + dates = "weekly"; 33 + 34 + extraArgs = "--delete-older-than 7d"; 35 + }; 36 + }; 30 37 }