diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2018-09-27 21:46:31 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2018-09-28 11:37:20 +0100 |
commit | aa69bb5743069f62204433aaa493861bea53755f (patch) | |
tree | 267dff825198378bb419c9fae1e3971f8563a810 /nixos/modules/system/boot/systemd.nix | |
parent | 3c6c93409795cb051549d365cd96c7870ae83a81 (diff) | |
download | nixpkgs-aa69bb5743069f62204433aaa493861bea53755f.tar nixpkgs-aa69bb5743069f62204433aaa493861bea53755f.tar.gz nixpkgs-aa69bb5743069f62204433aaa493861bea53755f.tar.bz2 nixpkgs-aa69bb5743069f62204433aaa493861bea53755f.tar.lz nixpkgs-aa69bb5743069f62204433aaa493861bea53755f.tar.xz nixpkgs-aa69bb5743069f62204433aaa493861bea53755f.tar.zst nixpkgs-aa69bb5743069f62204433aaa493861bea53755f.zip |
systemd: don't restart user-runtime-dir@ on upgrades
Likewise logind we should not try to restart this service after upgrade, the user's current session depends on it.
Diffstat (limited to 'nixos/modules/system/boot/systemd.nix')
-rw-r--r-- | nixos/modules/system/boot/systemd.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index 12e029ae57f..3ac4c02b61f 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -886,6 +886,9 @@ in #systemd.services.systemd-logind.restartTriggers = [ config.environment.etc."systemd/logind.conf".source ]; systemd.services.systemd-logind.restartIfChanged = false; systemd.services.systemd-logind.stopIfChanged = false; + # The user-runtime-dir@ service is managed by systemd-logind we should not touch it or else we break the users' sessions. + systemd.services."user-runtime-dir@".stopIfChanged = false; + systemd.services."user-runtime-dir@".restartIfChanged = false; systemd.services.systemd-journald.restartTriggers = [ config.environment.etc."systemd/journald.conf".source ]; systemd.services.systemd-journald.stopIfChanged = false; systemd.targets.local-fs.unitConfig.X-StopOnReconfiguration = true; |