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

Changed files
+2 -2
nixos
modules
services
x11
display-managers
+2 -2
nixos/modules/services/x11/display-managers/sddm.nix
···
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
''}