From 7ec153889c05a840e372c04bca420298e5403dff Mon Sep 17 00:00:00 2001 From: "Wael M. Nasreddine" Date: Wed, 20 Feb 2019 23:37:03 -0800 Subject: [PATCH] nix-darwin: login as the user when activating --- nix-darwin/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix-darwin/default.nix b/nix-darwin/default.nix index 3e4bcb38d..8e3180299 100644 --- a/nix-darwin/default.nix +++ b/nix-darwin/default.nix @@ -42,7 +42,7 @@ in system.activationScripts.postActivation.text = concatStringsSep "\n" (mapAttrsToList (username: usercfg: '' echo Activating home-manager configuration for ${username} - sudo -u ${username} ${usercfg.home.activationPackage}/activate + sudo -u ${username} -i ${usercfg.home.activationPackage}/activate '') cfg.users); }; }