0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

Merge pull request #248390 from sersorrel/picom-package

nixos/picom: add `package` option
This commit is contained in:
Michele Guerini Rocco 2023-08-15 11:05:35 +02:00 committed by GitHub
commit e7a57d07a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,6 +61,8 @@ in {
'';
};
package = mkPackageOptionMD pkgs "picom" { };
fade = mkOption {
type = types.bool;
default = false;
@ -301,13 +303,13 @@ in {
};
serviceConfig = {
ExecStart = "${pkgs.picom}/bin/picom --config ${configFile}";
ExecStart = "${getExe cfg.package} --config ${configFile}";
RestartSec = 3;
Restart = "always";
};
};
environment.systemPackages = [ pkgs.picom ];
environment.systemPackages = [ cfg.package ];
};
meta.maintainers = with lib.maintainers; [ rnhmjoj ];