mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 01:19:32 +08:00
redshift-gammastep: migrate to lib.cli.toCommandLineShellGNU
Migrates from the deprecated toCommandLineShell to toCommandLineShellGNU. This changes the output format from space-separated short options (-c /path) to concatenated GNU-style options (-c/path). Both formats were verified to work correctly with redshift and gammastep. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
@@ -239,7 +239,7 @@ in
|
||||
configFullPath = config.xdg.configHome + "/${xdgConfigFilePath}";
|
||||
in
|
||||
"${cfg.package}/bin/${command} "
|
||||
+ lib.cli.toGNUCommandLineShell { } {
|
||||
+ lib.cli.toCommandLineShellGNU { } {
|
||||
v = cfg.enableVerboseLogging;
|
||||
c = configFullPath;
|
||||
};
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
WantedBy=graphical-session.target
|
||||
|
||||
[Service]
|
||||
ExecStart=@gammastep@/bin/gammastep -c /home/hm-user/.config/gammastep/config.ini
|
||||
ExecStart=@gammastep@/bin/gammastep -c/home/hm-user/.config/gammastep/config.ini
|
||||
Restart=on-failure
|
||||
RestartSec=3
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
WantedBy=graphical-session.target
|
||||
|
||||
[Service]
|
||||
ExecStart=@gammastep@/bin/gammastep-indicator -c /home/hm-user/.config/gammastep/config.ini
|
||||
ExecStart=@gammastep@/bin/gammastep-indicator -c/home/hm-user/.config/gammastep/config.ini
|
||||
Restart=on-failure
|
||||
RestartSec=3
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
WantedBy=graphical-session.target
|
||||
|
||||
[Service]
|
||||
ExecStart=@redshift@/bin/redshift -c /home/hm-user/.config/redshift/redshift.conf
|
||||
ExecStart=@redshift@/bin/redshift -c/home/hm-user/.config/redshift/redshift.conf
|
||||
Restart=on-failure
|
||||
RestartSec=3
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
WantedBy=graphical-session.target
|
||||
|
||||
[Service]
|
||||
ExecStart=@redshift@/bin/redshift-gtk -c /home/hm-user/.config/redshift/redshift.conf
|
||||
ExecStart=@redshift@/bin/redshift-gtk -c/home/hm-user/.config/redshift/redshift.conf
|
||||
Restart=on-failure
|
||||
RestartSec=3
|
||||
|
||||
|
||||
Reference in New Issue
Block a user