summary refs log tree commit diff stats
path: root/system/settings
diff options
context:
space:
mode:
authorAlan Pearce2024-04-29 14:48:08 +0200
committerAlan Pearce2024-05-18 12:17:12 +0200
commitec92b62d48052d2e4074b194faee86bf7ad18144 (patch)
tree5c14725810d3ac531d13da9ae18f0df8ba43a485 /system/settings
parent160dacb051bb3529f33e8d388818f63db810b3a1 (diff)
downloadnixfiles-ec92b62d48052d2e4074b194faee86bf7ad18144.tar.lz
nixfiles-ec92b62d48052d2e4074b194faee86bf7ad18144.tar.zst
nixfiles-ec92b62d48052d2e4074b194faee86bf7ad18144.zip
set up lorri
Diffstat (limited to 'system/settings')
-rw-r--r--system/settings/darwin.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/system/settings/darwin.nix b/system/settings/darwin.nix
index aa55cce5..b6a4fac7 100644
--- a/system/settings/darwin.nix
+++ b/system/settings/darwin.nix
@@ -32,6 +32,11 @@
     allowUnfree = true;
   };
 
+  # needed so that nix-darwin can activate the system as root
+  security.sudo.extraConfig = ''
+    Defaults	env_keep += "NIX_PATH"
+  '';
+
   launchd.user.agents.lorri = lib.mkIf config.services.lorri.enable {
     serviceConfig = {
       RunAtLoad = lib.mkForce false;