refactor(lib): remove unnecessary getMainProgram

This commit is contained in:
Infinidoge 2023-03-29 16:25:15 -04:00
parent 61fc330d10
commit adf130936f
2 changed files with 1 additions and 3 deletions

View file

@ -63,6 +63,6 @@
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" ];
serviceConfig.Type = "oneshot";
script = "${lib.our.getMainProgram pkgs.acpilight} -set 50";
script = "${lib.getExe pkgs.acpilight} -set 50";
};
}

View file

@ -27,6 +27,4 @@ rec {
replaceStrings
[ "." ] [ "" ]
(strings.sanitizeDerivationName (removePrefix "/" name));
getMainProgram = package: "${package}/bin/${attrByPath ["meta" "mainProgram"] package.pname package}";
})