From 6d09b17ea857797486572a8351604caf033de3cf Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Tue, 8 Sep 2020 23:02:29 +0000 Subject: [PATCH] Refactor --- configuration.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/configuration.nix b/configuration.nix index 3816f5e..ac1f9ab 100644 --- a/configuration.nix +++ b/configuration.nix @@ -57,8 +57,12 @@ in { system.stateVersion = "20.03"; - nix.trustedUsers = [ "root" "user" ]; - nix.optimise.automatic = true; - nix.gc.automatic = true; - nix.gc.options = "--delete-older-than 7d"; + nix = { + trustedUsers = [ "root" "user" ]; + optimise.automatic = true; + gc = { + automatic = true; + options = "--delete-older-than 7d"; + }; + }; }