From 85bc898e159693c5238a311efff3867aadb28841 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 12 May 2024 12:41:56 +0200 Subject: darwin: force use of XDG-based user profile --- system/settings/darwin.nix | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- cgit 1.4.1