diff options
author | Christian Kauhaus <kc@flyingcircus.io> | 2016-07-19 09:42:53 +0200 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2016-07-19 09:42:53 +0200 |
commit | 3530f3f20a934ed1d3df35fe3c8041d197f8b41e (patch) | |
tree | 3426cedf6c1a670f7777091e815214830a7754a3 /nixos/modules/system/boot/systemd.nix | |
parent | a6e3a53229ae8e4e4008feb04eeb91be6852d436 (diff) | |
download | nixpkgs-3530f3f20a934ed1d3df35fe3c8041d197f8b41e.tar nixpkgs-3530f3f20a934ed1d3df35fe3c8041d197f8b41e.tar.gz nixpkgs-3530f3f20a934ed1d3df35fe3c8041d197f8b41e.tar.bz2 nixpkgs-3530f3f20a934ed1d3df35fe3c8041d197f8b41e.tar.lz nixpkgs-3530f3f20a934ed1d3df35fe3c8041d197f8b41e.tar.xz nixpkgs-3530f3f20a934ed1d3df35fe3c8041d197f8b41e.tar.zst nixpkgs-3530f3f20a934ed1d3df35fe3c8041d197f8b41e.zip |
systemd: make ctrl-alt-del target configurable. (#16911)
We currently only allow upstream's default of "reboot.target" due to the way the symlinks are initialized. I made this configurable similar to the default unit.
Diffstat (limited to 'nixos/modules/system/boot/systemd.nix')
-rw-r--r-- | nixos/modules/system/boot/systemd.nix | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index 5c8cce5066a..df72be1b4be 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -120,7 +120,6 @@ let "systemd-poweroff.service" "halt.target" "systemd-halt.service" - "ctrl-alt-del.target" "shutdown.target" "umount.target" "final.target" @@ -162,7 +161,6 @@ let "systemd-hostnamed.service" "systemd-binfmt.service" ] - ++ cfg.additionalUpstreamSystemUnits; upstreamSystemWants = @@ -485,6 +483,15 @@ in description = "Default unit started when the system boots."; }; + systemd.ctrlAltDelUnit = mkOption { + default = "reboot.target"; + type = types.str; + example = "poweroff.target"; + description = '' + Target that should be started when Ctrl-Alt-Delete is pressed. + ''; + }; + systemd.globalEnvironment = mkOption { type = types.attrs; default = {}; |