clean up nix config

This commit is contained in:
Tim Schubert 2021-11-14 13:06:18 +01:00
parent fe0b5710e6
commit 90b549f5a9
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
6 changed files with 37 additions and 37 deletions

View file

@ -11,18 +11,18 @@ in
config = mkIf cfg.enable {
nix = {
autoOptimiseStore = false;
useSandbox = true;
autoOptimiseStore = true;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
dates = "daily";
options = "--delete-older-than 3d";
};
};
system.autoUpgrade = {
enable = true;
dates = "daily";
flake = "github:dadada/nix-config#nixosConfigurations.${config.networking.hostName}.config.system.build.toplevel";
};
};
}