about summary refs log tree commit diff
path: root/nixos/modules/system/boot/systemd-lib.nix
diff options
context:
space:
mode:
authorChristian Kauhaus <kc@flyingcircus.io>2016-07-19 09:42:53 +0200
committerFranz Pletz <fpletz@fnordicwalking.de>2016-07-19 09:42:53 +0200
commit3530f3f20a934ed1d3df35fe3c8041d197f8b41e (patch)
tree3426cedf6c1a670f7777091e815214830a7754a3 /nixos/modules/system/boot/systemd-lib.nix
parenta6e3a53229ae8e4e4008feb04eeb91be6852d436 (diff)
downloadnixlib-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.nix2
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/