Skip to content

nixos/jellystat: init module - #552946

Draft
Mistyttm wants to merge 2 commits into
NixOS:masterfrom
Mistyttm:add-jellystat-module
Draft

nixos/jellystat: init module#552946
Mistyttm wants to merge 2 commits into
NixOS:masterfrom
Mistyttm:add-jellystat-module

Conversation

@Mistyttm

@Mistyttm Mistyttm commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

module for jellystat, I have a couple more tweaks to make, but I wanted a draft PR to track it with the package addition

blocked by #552923

Things done

@Mistyttm Mistyttm mentioned this pull request Aug 15, 2026
13 tasks
@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (new) This PR adds a new package 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Aug 15, 2026
@h7x4 h7x4 added the 8.has: module (new) This PR adds a module in `nixos/` label Aug 15, 2026
@Mistyttm
Mistyttm force-pushed the add-jellystat-module branch from 9a19497 to c807bd6 Compare August 16, 2026 05:46
@Mistyttm

Copy link
Copy Markdown
Contributor Author

That's a bunch of fixes and the module documentation done

@nixpkgs-ci nixpkgs-ci Bot added 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation labels Aug 16, 2026
Comment on lines +43 to +47
${lib.concatStringsSep "\n" (
lib.mapAttrsToList (name: file: ''
export ${name}="$(${pkgs.coreutils}/bin/cat ${lib.escapeShellArg file})"
'') secretFiles
)}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use EnvironmentFile instead?


networking.firewall.allowedTCPPorts = lib.mkIf cfg.openFirewall [ cfg.settings.port ];

systemd.tmpfiles.rules = [

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use tmpfiles.settings instead.

Comment on lines +151 to +156
package = lib.mkOption {
type = lib.types.package;
default = pkgs.postgresql;
defaultText = lib.literalExpression "pkgs.postgresql";
description = "PostgreSQL package to use for the local Jellystat database.";
};

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please leave this up to the postgres module


services.postgresql = lib.mkIf cfg.settings.database.enable {
enable = true;
package = cfg.settings.database.package;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
package = cfg.settings.database.package;

ensureClauses.createdb = true;
}
];
authentication = ''

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would love to leave the default here

@Mistyttm

Copy link
Copy Markdown
Contributor Author

Thanks for the review, I'll get those fixed asap

I knew I was over thinking the postgres section, I keep doing that when I make a module for a package that uses postgres. Just doesn't seem to ever make sense to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation 8.has: module (new) This PR adds a module in `nixos/` 8.has: module (update) This PR changes an existing module in `nixos/` 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants