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-lib.nix | |
parent | a6e3a53229ae8e4e4008feb04eeb91be6852d436 (diff) | |
download | nixlib-3530f3f20a934ed1d3df35fe3c8041d197f8b41e.tar nixlib-3530f3f20a934ed1d3df35fe3c8041d197f8b41e.tar.gz nixlib-3530f3f20a934ed1d3df35fe3c8041d197f8b41e.tar.bz2 nixlib-3530f3f20a934ed1d3df35fe3c8041d197f8b41e.tar.lz nixlib-3530f3f20a934ed1d3df35fe3c8041d197f8b41e.tar.xz nixlib-3530f3f20a934ed1d3df35fe3c8041d197f8b41e.tar.zst nixlib-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-lib.nix')
-rw-r--r-- | nixos/modules/system/boot/systemd-lib.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/systemd-lib.nix b/nixos/modules/system/boot/systemd-lib.nix index 8acaa5212f5f..2e93693cbfc8 100644 --- a/nixos/modules/system/boot/systemd-lib.nix +++ b/nixos/modules/system/boot/systemd-lib.nix @@ -176,7 +176,7 @@ rec { ${optionalString (type == "system") '' # Stupid misc. symlinks. ln -s ${cfg.defaultUnit} $out/default.target - + ln -s ${cfg.ctrlAltDelUnit} $out/ctrl-alt-del.target ln -s rescue.target $out/kbrequest.target mkdir -p $out/getty.target.wants/ |