cleanup
This commit is contained in:
parent
77d0962f1c
commit
24bca63df5
1 changed files with 0 additions and 22 deletions
|
@ -51,28 +51,6 @@ let
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Function to create instance-specific configuration
|
||||
mkRadarrInstance = name: instanceCfg: {
|
||||
|
||||
systemd.services."radarr-${name}" = {
|
||||
description = "Radarr (${name})";
|
||||
|
||||
};
|
||||
|
||||
networking.firewall = mkIf instanceCfg.openFirewall {
|
||||
allowedTCPPorts = [ instanceCfg.port ];
|
||||
};
|
||||
|
||||
users.groups.${instanceCfg.group} = { };
|
||||
users.users = mkIf (instanceCfg.user == "radarr") {
|
||||
radarr = {
|
||||
inherit (instanceCfg) group;
|
||||
isSystemUser = true;
|
||||
home = instanceCfg.dataDir;
|
||||
};
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
options.mySystem.services.radarr = {
|
||||
|
|
Loading…
Reference in a new issue