refactor(lib): remove unnecessary getMainProgram
This commit is contained in:
parent
61fc330d10
commit
adf130936f
2 changed files with 1 additions and 3 deletions
|
@ -63,6 +63,6 @@
|
||||||
wantedBy = [ "sys-devices-pci0000:00-0000:00:02.0-drm-card0-card0\\x2deDP\\x2d1-intel_backlight.device" ];
|
wantedBy = [ "sys-devices-pci0000:00-0000:00:02.0-drm-card0-card0\\x2deDP\\x2d1-intel_backlight.device" ];
|
||||||
after = [ "system-systemd\\x2dbacklight.slice" "systemd-backlight@backlight:intel_backlight.service" ];
|
after = [ "system-systemd\\x2dbacklight.slice" "systemd-backlight@backlight:intel_backlight.service" ];
|
||||||
serviceConfig.Type = "oneshot";
|
serviceConfig.Type = "oneshot";
|
||||||
script = "${lib.our.getMainProgram pkgs.acpilight} -set 50";
|
script = "${lib.getExe pkgs.acpilight} -set 50";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,6 +27,4 @@ rec {
|
||||||
replaceStrings
|
replaceStrings
|
||||||
[ "." ] [ "" ]
|
[ "." ] [ "" ]
|
||||||
(strings.sanitizeDerivationName (removePrefix "/" name));
|
(strings.sanitizeDerivationName (removePrefix "/" name));
|
||||||
|
|
||||||
getMainProgram = package: "${package}/bin/${attrByPath ["meta" "mainProgram"] package.pname package}";
|
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue