Unverified Commit e7a57d07 authored by Michele Guerini Rocco's avatar Michele Guerini Rocco Committed by GitHub
Browse files

Merge pull request #248390 from sersorrel/picom-package

nixos/picom: add `package` option
parents 9e3eb3ce e0fad051
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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 ];