rewrite plex

This commit is contained in:
Andreas Zweili 2022-02-28 22:08:07 +01:00
parent 9a381ff3b7
commit eeae435937
2 changed files with 18 additions and 11 deletions

View File

@ -135,18 +135,9 @@
./home-manager/headless.nix
[ ];
plex = mkComputer
(mkVM
{ hostname = "plex"; ip = "10.7.89.112"; inherit custom inputs; })
./systems/plex
./home-manager/headless.nix
[
./modules/docker
./modules/media-share
./modules/plex
(import ./modules/restic-server-client {
inherit custom inputs; time = "03:30";
})
];
[ ];
nextcloud = mkComputer
(mkVM
{ hostname = "nextcloud"; ip = "10.7.89.103"; inherit custom inputs; })

16
systems/plex/default.nix Normal file
View File

@ -0,0 +1,16 @@
{ config, custom, inputs, pkgs, ... }:
{
imports = [
(import "${inputs.self}/systems/proxmox-vm" {
hostname = "plex";
ip = "10.7.89.112";
inherit inputs;
})
(import "${inputs.self}/modules/restic-server-client" {
time = "03:30"; inherit config custom inputs pkgs;
})
"${inputs.self}/modules/docker"
"${inputs.self}/modules/media-share"
"${inputs.self}/modules/plex"
];
}