From de5e320c1a5e4705c192c7d2349b2d626288c970 Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Mon, 21 Feb 2022 13:58:38 +0000 Subject: [PATCH] Source /etc/profile.d/nix.sh on darwin --- home-manager/modules/common.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/home-manager/modules/common.nix b/home-manager/modules/common.nix index 8d62b33..0017102 100644 --- a/home-manager/modules/common.nix +++ b/home-manager/modules/common.nix @@ -265,6 +265,11 @@ in ])) (mkIf (pkgs.stdenv.isDarwin && config.my.isStandalone) { home = { + # No targets.genericLinux equivalent apparently + sessionVariablesExtra = + '' + . "${pkgs.nix}/etc/profile.d/nix.sh" + ''; packages = with pkgs; [ cacert ];