picom: use getExe instead of hardcoded binary
This commit is contained in:
parent
9482610ac1
commit
1aabb0a31b
|
@ -5,7 +5,7 @@ let
|
||||||
inherit (lib)
|
inherit (lib)
|
||||||
boolToString concatMapStringsSep concatStringsSep escape literalExpression
|
boolToString concatMapStringsSep concatStringsSep escape literalExpression
|
||||||
mapAttrsToList mkEnableOption mkRenamedOptionModule mkRemovedOptionModule
|
mapAttrsToList mkEnableOption mkRenamedOptionModule mkRemovedOptionModule
|
||||||
mkDefault mkIf mkOption optional types warn;
|
mkDefault mkIf mkOption optional types warn getExe;
|
||||||
|
|
||||||
cfg = config.services.picom;
|
cfg = config.services.picom;
|
||||||
opt = options.services.picom;
|
opt = options.services.picom;
|
||||||
|
@ -318,7 +318,7 @@ in {
|
||||||
|
|
||||||
Service = {
|
Service = {
|
||||||
ExecStart = concatStringsSep " " ([
|
ExecStart = concatStringsSep " " ([
|
||||||
"${cfg.package}/bin/picom"
|
"${getExe cfg.package}"
|
||||||
"--config ${config.xdg.configFile."picom/picom.conf".source}"
|
"--config ${config.xdg.configFile."picom/picom.conf".source}"
|
||||||
] ++ cfg.extraArgs);
|
] ++ cfg.extraArgs);
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
WantedBy=graphical-session.target
|
WantedBy=graphical-session.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=@picom@/bin/picom --config /nix/store/00000000000000000000000000000000-hm_picompicom.conf --legacy-backends
|
ExecStart=@picom@/bin/dummy --config /nix/store/00000000000000000000000000000000-hm_picompicom.conf --legacy-backends
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=3
|
RestartSec=3
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue