From babd344bbc06ed00515ec7ffe8a13cb453e2fbe9 Mon Sep 17 00:00:00 2001 From: albert Date: Wed, 17 Apr 2024 11:25:49 +0900 Subject: [PATCH] update nixos.nix --- nixos/common/modules/nixos.nix | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) 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"; + }; }; }