summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authorJoachim Fasting <joachifm@users.noreply.github.com>2016-07-03 13:47:28 +0200
committerGitHub <noreply@github.com>2016-07-03 13:47:28 +0200
commit2f45a7a3f45b0180f58f76ae20be52f94c8d926d (patch)
tree97422dd60c34b30fd85b772f9db790ce8423b33d /nixos/modules/system
parentf56ab9e5e4a31ead55efd9e1d9b55ddf70533908 (diff)
parent86dfaafad26cc09d518b7c493f0cb09c98a16b3f (diff)
downloadnixlib-2f45a7a3f45b0180f58f76ae20be52f94c8d926d.tar
nixlib-2f45a7a3f45b0180f58f76ae20be52f94c8d926d.tar.gz
nixlib-2f45a7a3f45b0180f58f76ae20be52f94c8d926d.tar.bz2
nixlib-2f45a7a3f45b0180f58f76ae20be52f94c8d926d.tar.lz
nixlib-2f45a7a3f45b0180f58f76ae20be52f94c8d926d.tar.xz
nixlib-2f45a7a3f45b0180f58f76ae20be52f94c8d926d.tar.zst
nixlib-2f45a7a3f45b0180f58f76ae20be52f94c8d926d.zip
Merge pull request #16568 from layus/reload-logind
systemd-logind: reload when logind.conf changed
Diffstat (limited to 'nixos/modules/system')
-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 3d8f29c80f95..b7c09d2e4bfa 100644
--- a/nixos/modules/system/boot/systemd.nix
+++ b/nixos/modules/system/boot/systemd.nix
@@ -794,6 +794,8 @@ in
     systemd.services.systemd-remount-fs.restartIfChanged = false;
     systemd.services.systemd-update-utmp.restartIfChanged = false;
     systemd.services.systemd-user-sessions.restartIfChanged = false; # Restart kills all active sessions.
+    systemd.services.systemd-logind.restartTriggers = [ config.environment.etc."systemd/logind.conf".source ];
+    systemd.services.systemd-logind.stopIfChanged = false;
     systemd.targets.local-fs.unitConfig.X-StopOnReconfiguration = true;
     systemd.targets.remote-fs.unitConfig.X-StopOnReconfiguration = true;
     systemd.services.systemd-binfmt.wants = [ "proc-sys-fs-binfmt_misc.automount" ];