From c46284571a998a7c69a7f0d5bd3d84a545c11836 Mon Sep 17 00:00:00 2001 From: coolneng Date: Sun, 30 Jan 2022 22:06:17 +0100 Subject: [PATCH] Rename nix.settings options --- configuration.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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