ctucx.git: nixfiles

ctucx' nixfiles

commit 4056205106792fa615c7320a187365f63ea2f664
parent a4b997fcf214bae5ff997d506d25db4caae12eea
Author: Leah (ctucx) <git@ctu.cx>
Date: Sun, 27 Nov 2022 19:34:32 +0100

configurations/common: set trusted-users for nix
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/configurations/common/default.nix b/configurations/common/default.nix
@@ -37,9 +37,12 @@
   ];
 
   nix = {
-    nixPath      = lib.mkForce [ "nixpkgs=${lib.cleanSource pkgs.path}" ];
-    package      = pkgs.nix;
-    settings.experimental-features = [ "nix-command" "flakes" ];
+    nixPath  = lib.mkForce [ "nixpkgs=${lib.cleanSource pkgs.path}" ];
+    package  = pkgs.nix;
+    settings = {
+      trusted-users         = [ "root" "leah" "@wheel" ];
+      experimental-features = [ "nix-command" "flakes" ];
+    };
   };
 
 }