Kieran's opinionated (and probably slightly dumb) nix config

bug: fix tuigreet strings not being escaped

dunkirk.sh 0c3657c3 b64240ed

verified
Changed files
+4 -4
modules
nixos
+4 -4
modules/nixos/apps/tuigreet.nix
···
]
++ lib.optionals (cfg.sessionWrapper != null && cfg.sessionWrapper != [ ]) [
"--session-wrapper"
-
(lib.concatStringsSep " " cfg.sessionWrapper)
]
++ lib.optionals (cfg.xsessionWrapper != null && cfg.xsessionWrapper != [ ]) [
"--xsession-wrapper"
-
(lib.concatStringsSep " " cfg.xsessionWrapper)
]
++ lib.optionals cfg.noXsessionWrapper [ "--no-xsession-wrapper" ]
++ lib.optionals (cfg.powerShutdown != null && cfg.powerShutdown != [ ]) [
"--power-shutdown"
-
(lib.concatStringsSep " " cfg.powerShutdown)
]
++ lib.optionals (cfg.powerReboot != null && cfg.powerReboot != [ ]) [
"--power-reboot"
-
(lib.concatStringsSep " " cfg.powerReboot)
]
++ lib.optionals cfg.powerNoSetsid [ "--power-no-setsid" ]
++ lib.optionals (cfg.kbCommand != null) [
···
]
++ lib.optionals (cfg.sessionWrapper != null && cfg.sessionWrapper != [ ]) [
"--session-wrapper"
+
(lib.escapeShellArg (lib.concatStringsSep " " cfg.sessionWrapper))
]
++ lib.optionals (cfg.xsessionWrapper != null && cfg.xsessionWrapper != [ ]) [
"--xsession-wrapper"
+
(lib.escapeShellArg (lib.concatStringsSep " " cfg.xsessionWrapper))
]
++ lib.optionals cfg.noXsessionWrapper [ "--no-xsession-wrapper" ]
++ lib.optionals (cfg.powerShutdown != null && cfg.powerShutdown != [ ]) [
"--power-shutdown"
+
(lib.escapeShellArg (lib.concatStringsSep " " cfg.powerShutdown))
]
++ lib.optionals (cfg.powerReboot != null && cfg.powerReboot != [ ]) [
"--power-reboot"
+
(lib.escapeShellArg (lib.concatStringsSep " " cfg.powerReboot))
]
++ lib.optionals cfg.powerNoSetsid [ "--power-no-setsid" ]
++ lib.optionals (cfg.kbCommand != null) [