1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 03:29:45 +01:00

nixos: remove indirection via activate-${username}

Fixes #2191
This commit is contained in:
zseri 2021-07-20 14:40:45 +02:00 committed by Robert Helgesson
parent 5f6364fc28
commit 7c19bcb822
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -144,11 +144,8 @@ in {
# The activation script is run by a login shell to make sure
# that the user is given a sane Nix environment.
ExecStart = pkgs.writeScript "activate-${username}" ''
#! ${pkgs.runtimeShell} -el
echo Activating home-manager configuration for ${username}
exec ${usercfg.home.activationPackage}/activate
'';
ExecStart =
"${pkgs.runtimeShell} -l ${usercfg.home.activationPackage}/activate";
};
}) cfg.users;
};