diff --git a/configuration.nix b/configuration.nix index 242884e..c45f1cc 100644 --- a/configuration.nix +++ b/configuration.nix @@ -38,7 +38,10 @@ with pkgs; # Run Nix garbage collector and enable flakes nix = { - autoOptimiseStore = true; + settings = { + auto-optimise-store = true; + trusted-users = [ "root" "coolneng" ]; + }; gc = { automatic = true; options = "--delete-older-than 7d"; @@ -51,7 +54,6 @@ with pkgs; experimental-features = nix-command flakes ''; package = nixUnstable; - trustedUsers = [ "root" "coolneng" ]; }; # Clean tmp directory on shutdown