nixos/sddm: always run systemctl of the currently running systemd

This commit is contained in:
Florian Klink 2020-05-21 10:33:22 +02:00
parent 3fcfcb8bcb
commit de358a00b5
1 changed files with 2 additions and 2 deletions
nixos/modules/services/x11/display-managers

View File

@ -30,8 +30,8 @@ let
cfgFile = pkgs.writeText "sddm.conf" ''
[General]
HaltCommand=${pkgs.systemd}/bin/systemctl poweroff
RebootCommand=${pkgs.systemd}/bin/systemctl reboot
HaltCommand=/run/current-system/systemd/bin/systemctl poweroff
RebootCommand=/run/current-system/systemd/bin/systemctl reboot
${optionalString cfg.autoNumlock ''
Numlock=on
''}