From 400e3c0152793ece616081870f979a2081a04f63 Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Sat, 16 Nov 2024 17:25:31 +0000 Subject: [PATCH] nixos: always run home-manager on NixOS activation (#5780) Currently, the home-manager systemd service will only get restarted when the home-manager configuration changes. This can lead to issues in users' home directories not getting corrected for a while. $ rm ~/.zshrc $ sudo nixos-rebuild switch $ ls ~/.zshrc ls: cannot access '/home/enzime/.zshrc': No such file or directory --- nixos/default.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/nixos/default.nix b/nixos/default.nix index 95d5943fc..2b542238a 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -48,7 +48,6 @@ in { serviceConfig = { User = usercfg.home.username; Type = "oneshot"; - RemainAfterExit = "yes"; TimeoutStartSec = "5m"; SyslogIdentifier = "hm-activate-${username}";