fix(backlight): change program, wantedBy -> after
This commit is contained in:
parent
223ada92eb
commit
805f9f080f
1 changed files with 3 additions and 3 deletions
|
@ -8,15 +8,15 @@ in
|
||||||
{
|
{
|
||||||
options.modules.hardware.backlight = with types; {
|
options.modules.hardware.backlight = with types; {
|
||||||
enable = mkBoolOpt false;
|
enable = mkBoolOpt false;
|
||||||
initialValue = mkOpt str "50%";
|
initialValue = mkOpt str "50";
|
||||||
initialCommand = mkOpt str "${getMainProgram pkgs.brightnessctl} set ${cfg.initialValue} --class=backlight";
|
initialCommand = mkOpt str "${getMainProgram pkgs.acpilight} -set ${cfg.initialValue}";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
systemd.services = {
|
systemd.services = {
|
||||||
"set-initial-backlight" = {
|
"set-initial-backlight" = {
|
||||||
description = "Sets the initial backlight status on startup";
|
description = "Sets the initial backlight status on startup";
|
||||||
wantedBy = [ "multi-user.target" ];
|
after = [ "multi-user.target" ];
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
script = cfg.initialCommand;
|
script = cfg.initialCommand;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue