mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
nixos/gotify-server: add package option
This commit is contained in:
parent
b5a051f694
commit
e1ced8b12c
1 changed files with 3 additions and 1 deletions
|
@ -12,6 +12,8 @@ in
|
|||
options.services.gotify = {
|
||||
enable = lib.mkEnableOption "Gotify webserver";
|
||||
|
||||
package = lib.mkPackageOption pkgs "gotify-server" { };
|
||||
|
||||
port = lib.mkOption {
|
||||
type = lib.types.port;
|
||||
description = ''
|
||||
|
@ -44,7 +46,7 @@ in
|
|||
StateDirectory = cfg.stateDirectoryName;
|
||||
Restart = "always";
|
||||
DynamicUser = true;
|
||||
ExecStart = "${pkgs.gotify-server}/bin/server";
|
||||
ExecStart = lib.getExe cfg.package;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue