From bddd10d75c333fd09efc89a268067173ec1fc6b4 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 20 May 2014 11:10:20 +0200 Subject: switch-to-configuration: Don't restart instances of user@.service Restarting user@ instances is bad because it causes all user services (such as ssh-agent.service) to be restarted. Maybe one day we can have switch-to-configuration restart user units in a fine-grained way, but for now we should just ignore user systemd instances. Backport: 14.04 --- nixos/modules/system/boot/systemd.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nixos/modules/system') diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index 764d7775e98d..761600f9e551 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -812,5 +812,7 @@ in ${concatStringsSep "\n" cfg.tmpfiles.rules} ''; + systemd.services."user@".restartIfChanged = false; + }; } -- cgit 1.4.1