summary refs log tree commit diff
path: root/nixos/modules/system/boot/systemd.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-05-20 11:10:20 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-05-20 11:12:56 +0200
commitbddd10d75c333fd09efc89a268067173ec1fc6b4 (patch)
tree41c2cd5ac80cb77df471cec9aea3aa10be74a6da /nixos/modules/system/boot/systemd.nix
parent5db0f18a9c55665c844026b8dbbc163d85ebd7a4 (diff)
downloadnixpkgs-bddd10d75c333fd09efc89a268067173ec1fc6b4.tar
nixpkgs-bddd10d75c333fd09efc89a268067173ec1fc6b4.tar.gz
nixpkgs-bddd10d75c333fd09efc89a268067173ec1fc6b4.tar.bz2
nixpkgs-bddd10d75c333fd09efc89a268067173ec1fc6b4.tar.lz
nixpkgs-bddd10d75c333fd09efc89a268067173ec1fc6b4.tar.xz
nixpkgs-bddd10d75c333fd09efc89a268067173ec1fc6b4.tar.zst
nixpkgs-bddd10d75c333fd09efc89a268067173ec1fc6b4.zip
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
Diffstat (limited to 'nixos/modules/system/boot/systemd.nix')
-rw-r--r--nixos/modules/system/boot/systemd.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix
index 764d7775e98..761600f9e55 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;
+
   };
 }