Add plex node with tautulli and Ombi
This commit is contained in:
parent
991b9d4b4f
commit
1d7dd28eed
5 changed files with 105 additions and 8 deletions
14
flake.nix
14
flake.nix
|
|
@ -107,13 +107,13 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# vaultwarden.deployment = {
|
plex.deployment = {
|
||||||
# targetHost = "192.168.1.154";
|
targetHost = "192.168.1.155";
|
||||||
# tags = [
|
tags = [
|
||||||
# "lxc"
|
"lxc"
|
||||||
# "bacco"
|
"node"
|
||||||
# ];
|
];
|
||||||
# };
|
};
|
||||||
|
|
||||||
deadbeef.deployment = {
|
deadbeef.deployment = {
|
||||||
allowLocalDeployment = true;
|
allowLocalDeployment = true;
|
||||||
|
|
|
||||||
40
hosts/plex/default.nix
Normal file
40
hosts/plex/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
my = {
|
||||||
|
utils.commons.enable = true;
|
||||||
|
|
||||||
|
services.plex = {
|
||||||
|
enable = true;
|
||||||
|
tautulli.enable = true;
|
||||||
|
ombi.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.nas-samba-share = {
|
||||||
|
enable = true;
|
||||||
|
allowUsers = [ config.my.services.plex.user ];
|
||||||
|
};
|
||||||
|
|
||||||
|
virtualisation.proxmox.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
time.timeZone = "Europe/Rome";
|
||||||
|
|
||||||
|
# Extra packages
|
||||||
|
environment.systemPackages = with pkgs; [ ];
|
||||||
|
|
||||||
|
services = {
|
||||||
|
openssh.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
networking = {
|
||||||
|
# firewall.allowedTCPPorts = [ 80 ];
|
||||||
|
nameservers = [ "192.168.1.2" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
system.stateVersion = "24.11";
|
||||||
|
}
|
||||||
|
|
@ -2,7 +2,8 @@
|
||||||
imports = [
|
imports = [
|
||||||
./media-mgr.nix
|
./media-mgr.nix
|
||||||
./nextcloud.nix
|
./nextcloud.nix
|
||||||
./searx.nix
|
./plex.nix
|
||||||
|
# ./searx.nix
|
||||||
./vaultwarden.nix
|
./vaultwarden.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
55
modules/services/plex.nix
Normal file
55
modules/services/plex.nix
Normal file
|
|
@ -0,0 +1,55 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.my.services.plex;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
|
||||||
|
options.my.services.plex = {
|
||||||
|
enable = lib.mkEnableOption "Enable Plex, Tautulli and Ombi";
|
||||||
|
tautulli.enable = lib.mkEnableOption "Enable Tautulli";
|
||||||
|
ombi.enable = lib.mkEnableOption "Enable Ombi";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkMerge [
|
||||||
|
(lib.mkIf cfg.enable {
|
||||||
|
|
||||||
|
services.plex = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
extraPlugins = [
|
||||||
|
(builtins.path {
|
||||||
|
name = "Audnexus.bundle";
|
||||||
|
path = pkgs.fetchFromGitHub {
|
||||||
|
owner = "djdembeck";
|
||||||
|
repo = "Audnexus.bundle";
|
||||||
|
rev = "v1.3.2";
|
||||||
|
sha256 = "sha256-BpwyedIjkXS+bHBsIeCpSoChyWCX5A38ywe71qo3tEI=";
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
(lib.mkIf cfg.tautulli.enable {
|
||||||
|
services.tautulli = {
|
||||||
|
enable = true;
|
||||||
|
port = 8181;
|
||||||
|
openFirewall = true;
|
||||||
|
};
|
||||||
|
})
|
||||||
|
|
||||||
|
(lib.mkIf cfg.ombi.enable {
|
||||||
|
services.ombi = {
|
||||||
|
enable = true;
|
||||||
|
port = 5000;
|
||||||
|
openFirewall = true;
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -13,6 +13,7 @@ rec {
|
||||||
nextcloud = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBhRxaMK+swWcbd6dyBvPw74EtB5mghjgBzmIhXy9cRt";
|
nextcloud = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBhRxaMK+swWcbd6dyBvPw74EtB5mghjgBzmIhXy9cRt";
|
||||||
vaultwarden = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKaDk98q5v8KO3cgIWG+gpdrfbpw+qZQBujK0FV95TM1";
|
vaultwarden = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKaDk98q5v8KO3cgIWG+gpdrfbpw+qZQBujK0FV95TM1";
|
||||||
search = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBhRxaMK+swWcbd6dyBvPw74EtB5mghjgBzmIhXy9cRt"; # TODO: Update this key
|
search = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBhRxaMK+swWcbd6dyBvPw74EtB5mghjgBzmIhXy9cRt"; # TODO: Update this key
|
||||||
|
plex = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINp9itRJGSSVWLxwrcudyGUNOOKl+qqtf+IzLHrhffyt";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Machines able to provision other machines
|
# Machines able to provision other machines
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue