Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[24.11] pykms: unstable-2021-01-25 -> 0-unstable-2024-07-06 #371194

Open
wants to merge 3 commits into
base: release-24.11
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions nixos/modules/services/misc/pykms.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ in
description = "Whether to enable the PyKMS service.";
};

listenAddress = mkOption {
type = types.str;
package = lib.mkPackageOption pkgs "pykms" { };

listenAddress = lib.mkOption {
type = lib.types.str;
default = "0.0.0.0";
example = "::";
description = "The IP address on which to listen.";
};

Expand Down Expand Up @@ -80,13 +83,13 @@ in
wantedBy = [ "multi-user.target" ];
# python programs with DynamicUser = true require HOME to be set
environment.HOME = libDir;
serviceConfig = with pkgs; {
serviceConfig = {
DynamicUser = true;
StateDirectory = baseNameOf libDir;
ExecStartPre = "${getBin pykms}/libexec/create_pykms_db.sh ${libDir}/clients.db";
ExecStartPre = "${lib.getBin cfg.package}/libexec/create_pykms_db.sh ${libDir}/clients.db";
ExecStart = lib.concatStringsSep " " (
[
"${getBin pykms}/bin/server"
"${lib.getBin cfg.package}/bin/server"
"--logfile=STDOUT"
"--loglevel=${cfg.logLevel}"
"--sqlite=${libDir}/clients.db"
Expand Down
6 changes: 3 additions & 3 deletions pkgs/by-name/py/pykms/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ let
in
pypkgs.buildPythonApplication rec {
pname = "pykms";
version = "unstable-2021-01-25";
version = "0-unstable-2024-07-06";

src = fetchFromGitHub {
owner = "Py-KMS-Organization";
repo = "py-kms";
rev = "1435c86fe4f11aa7fd42d77fa61715ca3015eeab";
hash = "sha256-9KiMbS0uKTbWSZVIv5ziIeR9c8+EKfKd20yPmjCX7GQ=";
rev = "465f4d14c728819d4eb00e3419bd1cb98af7f81c";
hash = "sha256-/XbMbcBcZPO7joHyaprJ29Cq4gNpuuzTzj2x1XDIyj8=";
};

sourceRoot = "${src.name}/py-kms";
Expand Down
Loading