nixos/soju: add package option

This commit is contained in:
Benjamin Lee 2024-04-07 13:43:35 -07:00
parent 08b9151ed4
commit 4959d7bcd8
No known key found for this signature in database
GPG Key ID: FB9624E2885D55A4
1 changed files with 3 additions and 1 deletions

View File

@ -29,6 +29,8 @@ in
options.services.soju = {
enable = mkEnableOption (lib.mdDoc "soju");
package = mkPackageOption pkgs "soju" { };
listen = mkOption {
type = types.listOf types.str;
default = [ ":6697" ];
@ -115,7 +117,7 @@ in
serviceConfig = {
DynamicUser = true;
Restart = "always";
ExecStart = "${pkgs.soju}/bin/soju -config ${configFile}";
ExecStart = "${cfg.package}/bin/soju -config ${configFile}";
StateDirectory = "soju";
};
};