nix/hosts/arr/default.nix

57 lines
1 KiB
Nix

{
config,
pkgs,
lib,
...
}:
let
p = import ../parameters.nix;
in
{
age.secrets = {
arr-secrets.file = ../../secrets/arr-secrets.age;
tailscale-authKey.file = ../../secrets/tailscale-authKey.age;
};
my = {
utils = {
commons.enable = true;
lxc-standard.enable = true;
};
networking = {
lxc_shares = {
enable = true;
allowUsers = with config.services; [
sonarr.user
radarr.user
lidarr.user
readarr.user
bazarr.user
];
};
tailscale = {
enable = true;
magicDNSDomain = p.domains.tsDns;
authKeyFile = config.age.secrets.tailscale-authKey.path;
};
};
services.media-mgr = {
programs = {
enable = true;
commonSecretsFile = config.age.secrets.arr-secrets.path;
};
};
virtualisation = {
proxmox.enable = true;
};
};
# Extra packages
environment.systemPackages = with pkgs; [ ];
system.stateVersion = "24.05";
}