mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-09 02:21:05 +01:00
redshift/gammastep: add enableVerboseLogging option
This option controls whether the `-v` command line argument is given. Co-authored-by: Sumner Evans <me@sumnerevans.com>
This commit is contained in:
parent
bd87a34bb4
commit
e1f1160284
3 changed files with 8 additions and 3 deletions
|
|
@ -110,6 +110,8 @@ in {
|
|||
'';
|
||||
};
|
||||
|
||||
enableVerboseLogging = mkEnableOption "verbose service logging";
|
||||
|
||||
tray = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
|
|
@ -199,7 +201,10 @@ in {
|
|||
ExecStart = let
|
||||
command = if cfg.tray then appletExecutable else mainExecutable;
|
||||
configFullPath = config.xdg.configHome + "/${xdgConfigFilePath}";
|
||||
in "${cfg.package}/bin/${command} -v -c ${configFullPath}";
|
||||
in "${cfg.package}/bin/${command} " + cli.toGNUCommandLineShell { } {
|
||||
v = cfg.enableVerboseLogging;
|
||||
c = configFullPath;
|
||||
};
|
||||
RestartSec = 3;
|
||||
Restart = "on-failure";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue