forked from aylac.top/nixcfg
this repo has no description
1{ 2 config, 3 lib, 4 pkgs, 5 ... 6}: { 7 options.myNixOS.programs.nix.enable = lib.mkEnableOption "sane nix configuration"; 8 9 config = lib.mkIf config.myNixOS.programs.nix.enable { 10 nix = { 11 package = pkgs.nixVersions.latest; 12 13 gc = { 14 automatic = true; 15 16 options = "--delete-older-than 3d"; 17 18 persistent = true; 19 randomizedDelaySec = "60min"; 20 }; 21 22 optimise = { 23 automatic = true; 24 persistent = true; 25 randomizedDelaySec = "60min"; 26 }; 27 28 inherit (config.mySnippets.nix) settings; 29 }; 30 }; 31}