mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-29 21:51:01 +01:00
picom: use getExe instead of hardcoded binary
This commit is contained in:
parent
9482610ac1
commit
1aabb0a31b
2 changed files with 3 additions and 3 deletions
|
|
@ -5,7 +5,7 @@ let
|
|||
inherit (lib)
|
||||
boolToString concatMapStringsSep concatStringsSep escape literalExpression
|
||||
mapAttrsToList mkEnableOption mkRenamedOptionModule mkRemovedOptionModule
|
||||
mkDefault mkIf mkOption optional types warn;
|
||||
mkDefault mkIf mkOption optional types warn getExe;
|
||||
|
||||
cfg = config.services.picom;
|
||||
opt = options.services.picom;
|
||||
|
|
@ -318,7 +318,7 @@ in {
|
|||
|
||||
Service = {
|
||||
ExecStart = concatStringsSep " " ([
|
||||
"${cfg.package}/bin/picom"
|
||||
"${getExe cfg.package}"
|
||||
"--config ${config.xdg.configFile."picom/picom.conf".source}"
|
||||
] ++ cfg.extraArgs);
|
||||
Restart = "always";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue