Commit e1ced8b1 authored by DCsunset's avatar DCsunset
Browse files

nixos/gotify-server: add package option

parent b5a051f6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;
      };
    };
  };