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; {
|
||||
enable = mkBoolOpt false;
|
||||
initialValue = mkOpt str "50%";
|
||||
initialCommand = mkOpt str "${getMainProgram pkgs.brightnessctl} set ${cfg.initialValue} --class=backlight";
|
||||
initialValue = mkOpt str "50";
|
||||
initialCommand = mkOpt str "${getMainProgram pkgs.acpilight} -set ${cfg.initialValue}";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
systemd.services = {
|
||||
"set-initial-backlight" = {
|
||||
description = "Sets the initial backlight status on startup";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "multi-user.target" ];
|
||||
serviceConfig.Type = "oneshot";
|
||||
script = cfg.initialCommand;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue