Merge pull request #232339 from bl1nk/bl1nk/thelounge-package-option

nixos/thelounge: add package option
This commit is contained in:
Sandro 2023-05-25 22:04:22 +02:00 committed by GitHub
commit ef2a17c946
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,6 +25,8 @@ in
options.services.thelounge = {
enable = mkEnableOption (lib.mdDoc "The Lounge web IRC client");
package = mkPackageOptionMD pkgs "thelounge" { };
public = mkOption {
type = types.bool;
default = false;
@ -93,11 +95,11 @@ in
serviceConfig = {
User = "thelounge";
StateDirectory = baseNameOf dataDir;
ExecStart = "${pkgs.thelounge}/bin/thelounge start";
ExecStart = "${getExe cfg.package} start";
};
};
environment.systemPackages = [ pkgs.thelounge ];
environment.systemPackages = [ cfg.package ];
};
meta = {