From 9afe77a70bd821239ce5a612e1c894a6d5816eed Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Wed, 7 Jan 2026 22:18:27 -0600 Subject: [PATCH] wlsunset: migrate to lib.cli.toCommandLineShellGNU Migrates from the deprecated toGNUCommandLineShell to toCommandLineShellGNU. This changes the output format from space-separated short options (-t 3500) to concatenated GNU-style options (-t3500). Both formats were verified to work correctly with wlsunset. Signed-off-by: Austin Horstman --- modules/services/wlsunset.nix | 2 +- .../modules/services/wlsunset/wlsunset-service-expected.service | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/services/wlsunset.nix b/modules/services/wlsunset.nix index 4bdc9a8f1..766602b55 100644 --- a/modules/services/wlsunset.nix +++ b/modules/services/wlsunset.nix @@ -134,7 +134,7 @@ in Service = { ExecStart = let - args = lib.cli.toGNUCommandLineShell { } { + args = lib.cli.toCommandLineShellGNU { } { t = cfg.temperature.night; T = cfg.temperature.day; g = cfg.gamma; diff --git a/tests/modules/services/wlsunset/wlsunset-service-expected.service b/tests/modules/services/wlsunset/wlsunset-service-expected.service index f89f36e1e..1ea58c19b 100644 --- a/tests/modules/services/wlsunset/wlsunset-service-expected.service +++ b/tests/modules/services/wlsunset/wlsunset-service-expected.service @@ -2,7 +2,7 @@ WantedBy=test.target [Service] -ExecStart=@wlsunset@/bin/wlsunset -L 128.8 -T 6000 -g 0.6 -l 12.3 -t 3500 +ExecStart=@wlsunset@/bin/wlsunset -L128.8 -T6000 -g0.6 -l12.3 -t3500 [Unit] After=test.target