kek
This commit is contained in:
@@ -44,7 +44,7 @@ in
|
||||
pciutils
|
||||
proton-pass-cli
|
||||
proton-vpn-cli
|
||||
protonvpn-gui
|
||||
proton-vpn
|
||||
protonup-ng
|
||||
rsync
|
||||
smartmontools
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 ];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user