This commit is contained in:
mjallen18
2026-04-01 13:21:25 -05:00
parent 57fa32bf9c
commit 03f6b730cf
13 changed files with 112 additions and 22 deletions

View File

@@ -44,7 +44,7 @@ in
pciutils
proton-pass-cli
proton-vpn-cli
protonvpn-gui
proton-vpn
protonup-ng
rsync
smartmontools

View File

@@ -21,17 +21,17 @@ let
settings = {
trustedProxies = [ config.${namespace}.network.ipv4.address ];
port = cfg.port;
configDir = "${cfg.configDir}/${name}";
serverFiles = "${cfg.configDir}/${name}/server-files";
userFiles = "${cfg.configDir}/${name}/user-files";
dataDir = "${cfg.configDir}/${name}";
};
};
systemd.services = lib.mkIf cfg.createUser {
actual = {
environment.ACTUAL_CONFIG_PATH = lib.mkForce "${cfg.configDir}/${name}/config.json";
environment.ACTUAL_CONFIG_PATH = lib.mkForce "/run/actual/config.json";
serviceConfig = {
ExecStart = lib.mkForce "${lib.getExe pkgs.actual-server} --config ${cfg.configDir}/${name}/config.json";
ExecStart = lib.mkForce "${lib.getExe pkgs.actual-server} --config /run/actual/config.json";
WorkingDirectory = lib.mkForce "${cfg.configDir}/${name}";
StateDirectoryMode = lib.mkForce 700;
DynamicUser = lib.mkForce false;

View File

@@ -6,16 +6,16 @@
}:
with lib;
let
name = "jellyseerr";
name = "seerr";
cfg = config.${namespace}.services.${name};
jellyseerrConfig = lib.${namespace}.mkModule {
seerrConfig = lib.${namespace}.mkModule {
inherit config name;
description = "jellyseerr";
description = "seerr";
options = { };
moduleConfig = {
# Enable jellyseerr service
services.jellyseerr = {
# Enable seerr service
services.seerr = {
enable = true;
port = cfg.port;
openFirewall = cfg.openFirewall;
@@ -23,7 +23,7 @@ let
};
systemd.services = {
jellyseerr = {
seerr = {
serviceConfig = {
WorkingDirectory = lib.mkForce "${cfg.configDir}/jellyseerr";
StateDirectory = lib.mkForce "${cfg.configDir}/jellyseerr";
@@ -37,5 +37,5 @@ let
};
in
{
imports = [ jellyseerrConfig ];
imports = [ seerrConfig ];
}