1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-24 02:39:48 +01:00

picom: use getExe instead of hardcoded binary

This commit is contained in:
Philipp Mildenberger 2023-11-21 08:55:46 +01:00 committed by GitHub
parent 9482610ac1
commit 1aabb0a31b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -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";

View file

@ -2,7 +2,7 @@
WantedBy=graphical-session.target
[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
RestartSec=3