mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-11 07:15:54 +03:00
nixos/soju: add package option
This commit is contained in:
parent
08b9151ed4
commit
4959d7bcd8
@ -29,6 +29,8 @@ in
|
|||||||
options.services.soju = {
|
options.services.soju = {
|
||||||
enable = mkEnableOption (lib.mdDoc "soju");
|
enable = mkEnableOption (lib.mdDoc "soju");
|
||||||
|
|
||||||
|
package = mkPackageOption pkgs "soju" { };
|
||||||
|
|
||||||
listen = mkOption {
|
listen = mkOption {
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
default = [ ":6697" ];
|
default = [ ":6697" ];
|
||||||
@ -115,7 +117,7 @@ in
|
|||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
DynamicUser = true;
|
DynamicUser = true;
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
ExecStart = "${pkgs.soju}/bin/soju -config ${configFile}";
|
ExecStart = "${cfg.package}/bin/soju -config ${configFile}";
|
||||||
StateDirectory = "soju";
|
StateDirectory = "soju";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user