diff --git a/nixos/common/modules/nixos.nix b/nixos/common/modules/nixos.nix index cfac3b9b..492767bb 100644 --- a/nixos/common/modules/nixos.nix +++ b/nixos/common/modules/nixos.nix @@ -1,16 +1,16 @@ { ... }: { - # Enable flakes: https://nixos.wiki/wiki/Flakes - nix.settings.experimental-features = [ "nix-command" "flakes" ]; - - nix.optimise = { - automatic = true; - dates = ["daily"]; - }; - - # Garbage collection -- Keep the system clean - nix.gc = { - automatic = true; - dates = "daily"; - options = "--delete-older-than 30d"; + nix = { + settings = { + experimental-features = [ "nix-command" "flakes" ]; + }; + optimise = { + automatic = true; + dates = [ "daily" ]; + }; + gc = { + automatic = true; + dates = "daily"; + options = "--delete-older-than 30d"; + }; }; }