Merge pull request #99019 from sumnerevans/master
Add ability to configure executable for redshift service
This commit is contained in:
commit
8a7ea52173
|
@ -82,6 +82,15 @@ in {
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
executable = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "/bin/redshift";
|
||||||
|
example = "/bin/redshift-gtk";
|
||||||
|
description = ''
|
||||||
|
Redshift executable to use within the package.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
extraOptions = mkOption {
|
extraOptions = mkOption {
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
default = [];
|
default = [];
|
||||||
|
@ -114,7 +123,7 @@ in {
|
||||||
partOf = [ "graphical-session.target" ];
|
partOf = [ "graphical-session.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = ''
|
ExecStart = ''
|
||||||
${cfg.package}/bin/redshift \
|
${cfg.package}${cfg.executable} \
|
||||||
-l ${providerString} \
|
-l ${providerString} \
|
||||||
-t ${toString cfg.temperature.day}:${toString cfg.temperature.night} \
|
-t ${toString cfg.temperature.day}:${toString cfg.temperature.night} \
|
||||||
-b ${toString cfg.brightness.day}:${toString cfg.brightness.night} \
|
-b ${toString cfg.brightness.day}:${toString cfg.brightness.night} \
|
||||||
|
|
Loading…
Reference in New Issue