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:
commit
e7a57d07a8
1 changed files with 4 additions and 2 deletions
|
@ -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 ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue