Drop Upstart references
This commit is contained in:
parent
f903a3dcc8
commit
7d958dcdd1
|
@ -122,7 +122,7 @@ in
|
||||||
|
|
||||||
powerManagement.resumeCommands =
|
powerManagement.resumeCommands =
|
||||||
''
|
''
|
||||||
${config.system.build.upstart}/sbin/restart wpa_supplicant
|
${config.system.build.systemd}/bin/systemctl try-restart wpa_supplicant
|
||||||
'';
|
'';
|
||||||
|
|
||||||
assertions = [{ assertion = !cfg.userControlled.enable || cfg.interfaces != [];
|
assertions = [{ assertion = !cfg.userControlled.enable || cfg.interfaces != [];
|
||||||
|
|
|
@ -12,8 +12,8 @@ let
|
||||||
defaultConfig =
|
defaultConfig =
|
||||||
''
|
''
|
||||||
[Shutdown]
|
[Shutdown]
|
||||||
HaltCmd=${config.system.build.upstart}/sbin/halt
|
HaltCmd=${config.system.build.systemd}/sbin/halt
|
||||||
RebootCmd=${config.system.build.upstart}/sbin/reboot
|
RebootCmd=${config.system.build.systemd}/sbin/reboot
|
||||||
${optionalString (config.system.boot.loader.id == "grub") ''
|
${optionalString (config.system.boot.loader.id == "grub") ''
|
||||||
BootManager=${if config.boot.loader.grub.version == 2 then "Grub2" else "Grub"}
|
BootManager=${if config.boot.loader.grub.version == 2 then "Grub2" else "Grub"}
|
||||||
''}
|
''}
|
||||||
|
|
|
@ -14,8 +14,8 @@ let
|
||||||
xserver_arguments ${dmcfg.xserverArgs}
|
xserver_arguments ${dmcfg.xserverArgs}
|
||||||
sessions ${pkgs.lib.concatStringsSep "," (dmcfg.session.names ++ ["custom"])}
|
sessions ${pkgs.lib.concatStringsSep "," (dmcfg.session.names ++ ["custom"])}
|
||||||
login_cmd exec ${pkgs.stdenv.shell} ${dmcfg.session.script} "%session"
|
login_cmd exec ${pkgs.stdenv.shell} ${dmcfg.session.script} "%session"
|
||||||
halt_cmd ${config.system.build.upstart}/sbin/shutdown -h now
|
halt_cmd ${config.system.build.systemd}/sbin/shutdown -h now
|
||||||
reboot_cmd ${config.system.build.upstart}/sbin/shutdown -r now
|
reboot_cmd ${config.system.build.systemd}/sbin/shutdown -r now
|
||||||
${optionalString (cfg.defaultUser != "") ("default_user " + cfg.defaultUser)}
|
${optionalString (cfg.defaultUser != "") ("default_user " + cfg.defaultUser)}
|
||||||
${optionalString cfg.hideCursor "hidecursor true"}
|
${optionalString cfg.hideCursor "hidecursor true"}
|
||||||
${optionalString cfg.autoLogin "auto_login yes"}
|
${optionalString cfg.autoLogin "auto_login yes"}
|
||||||
|
|
Loading…
Reference in New Issue