From eeae4359379ea369ed630666e02b2dfd53440a3b Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Mon, 28 Feb 2022 22:08:07 +0100 Subject: [PATCH] rewrite plex --- flake.nix | 13 ++----------- systems/plex/default.nix | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 11 deletions(-) create mode 100644 systems/plex/default.nix diff --git a/flake.nix b/flake.nix index adb6766..78a1959 100644 --- a/flake.nix +++ b/flake.nix @@ -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; }) diff --git a/systems/plex/default.nix b/systems/plex/default.nix new file mode 100644 index 0000000..58c375e --- /dev/null +++ b/systems/plex/default.nix @@ -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" + ]; +}