From dc6e201a3e340183208d397a975501a136acb113 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Wed, 2 Feb 2022 21:26:39 +0100 Subject: [PATCH] Update renamed attributes --- modules/nix-common/default.nix | 6 ++++-- users/erwin/default.nix | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/nix-common/default.nix b/modules/nix-common/default.nix index ffef012..11e0769 100644 --- a/modules/nix-common/default.nix +++ b/modules/nix-common/default.nix @@ -19,7 +19,10 @@ in experimental-features = nix-command flakes ''; - autoOptimiseStore = true; + settings = { + auto-optimise-store = true; + allowed-users = [ "root" ]; + }; gc = { automatic = true; @@ -27,7 +30,6 @@ in options = "--delete-older-than=30d"; }; - allowedUsers = [ "root" ]; }; }; } diff --git a/users/erwin/default.nix b/users/erwin/default.nix index 02b635b..60c9008 100644 --- a/users/erwin/default.nix +++ b/users/erwin/default.nix @@ -13,5 +13,5 @@ ]; }; - nix.allowedUsers = [ "erwin" ]; + nix.settings.allowed-users = [ "erwin" ]; }