diff options
author | Wael M. Nasreddine <wael.nasreddine@gmail.com> | 2019-02-20 23:37:03 -0800 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2019-03-10 02:10:15 +0100 |
commit | 7ec153889c05a840e372c04bca420298e5403dff (patch) | |
tree | 1438561aec11d8a162fe229137ecb456ecf754a8 /nix-darwin | |
parent | efc795920b2ea1b157c321005336a0e8c0d6cd4e (diff) |
nix-darwin: login as the user when activating
Diffstat (limited to 'nix-darwin')
-rw-r--r-- | nix-darwin/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nix-darwin/default.nix b/nix-darwin/default.nix index 3e4bcb38d5f..8e318029938 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); }; } |