summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-05-12 12:41:56 +0200
committerAlan Pearce2024-05-12 12:41:56 +0200
commit85bc898e159693c5238a311efff3867aadb28841 (patch)
tree73949947f3f900c54e86fc4a4ad569ef88477e0d
parentf433d8313946a1dcf7d8be09fe401344aed9de6f (diff)
downloadnixfiles-85bc898e159693c5238a311efff3867aadb28841.tar.lz
nixfiles-85bc898e159693c5238a311efff3867aadb28841.tar.zst
nixfiles-85bc898e159693c5238a311efff3867aadb28841.zip
darwin: force use of XDG-based user profile
-rw-r--r--system/settings/darwin.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/system/settings/darwin.nix b/system/settings/darwin.nix
index 6423f102..ef039a48 100644
--- a/system/settings/darwin.nix
+++ b/system/settings/darwin.nix
@@ -10,6 +10,12 @@
     enable = true;
     enableSocketListener = true;
   };
+
+  environment.profiles = with lib; mkMerge [
+    (mkOrder 800 [ "\${XDG_STATE_HOME:-$HOME/.local/state}/nix/profile" ])
+    [ "/run/current-system/sw" "/nix/var/nix/profiles/default" ]
+  ];
+
   nix = {
     settings.cores = lib.mkDefault 0;
     daemonIOLowPriority = true;