Update radarr.nix
This commit is contained in:
parent
bad6e876e5
commit
d7994aeb31
1 changed files with 30 additions and 1 deletions
|
|
@ -1 +1,30 @@
|
|||
|
||||
# services/radarr.nix
|
||||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
config = lib.mkIf (config.networking.hostName == "FredOS-Mediaserver") {
|
||||
|
||||
# Radarr
|
||||
services.radarr = {
|
||||
enable = true;
|
||||
openFirewall = true; # Opens port 7878
|
||||
dataDir = "/var/lib/radarr";
|
||||
user = "radarr";
|
||||
group = "media";
|
||||
};
|
||||
|
||||
# Media group is already created in qbittorrent-nox.nix
|
||||
# Just make sure radarr is in it
|
||||
users.users.radarr = {
|
||||
isSystemUser = true;
|
||||
group = "media";
|
||||
extraGroups = [ "media" ];
|
||||
};
|
||||
|
||||
# Set up directory structure with proper permissions
|
||||
systemd.tmpfiles.rules = [
|
||||
# Media folders - radarr writes here
|
||||
"d /mnt/storage/torrents/movies 0775 radarr media -"
|
||||
"Z /mnt/storage/torrents/movies 0775 radarr media -"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue