diff --git a/nixos/default.nix b/nixos/default.nix index b5d02257..f6301c0d 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -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; };