migrate media to orbi
This commit is contained in:
parent
219f091d03
commit
64578b915c
4 changed files with 38 additions and 17 deletions
|
@ -10,13 +10,14 @@ with types;
|
|||
};
|
||||
|
||||
imports = [
|
||||
./sshd
|
||||
./tinc
|
||||
./hosts.nix
|
||||
./wifi.nix
|
||||
#./avahi.nix
|
||||
./syncthing.nix
|
||||
./hosts.nix
|
||||
./nginx.nix
|
||||
./sshd
|
||||
./syncthing.nix
|
||||
./tinc
|
||||
./wifi.nix
|
||||
./wireguard.nix
|
||||
];
|
||||
|
||||
config = mkIf config.components.network.enable { };
|
||||
|
|
16
nixos/components/network/wireguard.nix
Normal file
16
nixos/components/network/wireguard.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ lib, config, ... }:
|
||||
with lib;
|
||||
{
|
||||
|
||||
options.wireguard = {
|
||||
wg0 = {
|
||||
#ipv4 = mkOption { type = types.str; };
|
||||
subnet = mkOption {
|
||||
type = types.str;
|
||||
default = "10.100.0.1/24";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
@ -29,18 +29,18 @@
|
|||
dst = "/mirror/matrix-terranix";
|
||||
};
|
||||
|
||||
radarr = {
|
||||
sshKeyPath = config.sops.secrets.rsync_private_key.path;
|
||||
src = "root@robi:/media/arr/radarr";
|
||||
dst = "/media/arr/radarr";
|
||||
delete = false;
|
||||
};
|
||||
sonarr = {
|
||||
sshKeyPath = config.sops.secrets.rsync_private_key.path;
|
||||
src = "root@robi:/media/arr/sonarr";
|
||||
dst = "/media/arr/sonarr";
|
||||
delete = false;
|
||||
};
|
||||
#radarr = {
|
||||
# sshKeyPath = config.sops.secrets.rsync_private_key.path;
|
||||
# src = "root@robi:/media/arr/radarr";
|
||||
# dst = "/media/arr/radarr";
|
||||
# delete = false;
|
||||
#};
|
||||
#sonarr = {
|
||||
# sshKeyPath = config.sops.secrets.rsync_private_key.path;
|
||||
# src = "root@robi:/media/arr/sonarr";
|
||||
# dst = "/media/arr/sonarr";
|
||||
# delete = false;
|
||||
#};
|
||||
|
||||
|
||||
};
|
||||
|
|
|
@ -36,8 +36,10 @@
|
|||
|
||||
services.nginx.virtualHosts = {
|
||||
"radarr.${config.networking.hostName}.private" = {
|
||||
serverAliases = [ "radarr.ingolf-wagner.de" ];
|
||||
extraConfig = ''
|
||||
allow ${config.tinc.private.subnet};
|
||||
allow ${config.wireguard.wg0.subnet};
|
||||
deny all;
|
||||
'';
|
||||
locations."/" = {
|
||||
|
@ -46,8 +48,10 @@
|
|||
};
|
||||
};
|
||||
"sonarr.${config.networking.hostName}.private" = {
|
||||
serverAliases = [ "sonarr.ingolf-wagner.de" ];
|
||||
extraConfig = ''
|
||||
allow ${config.tinc.private.subnet};
|
||||
allow ${config.wireguard.wg0.subnet};
|
||||
deny all;
|
||||
'';
|
||||
locations."/" = {
|
||||
|
|
Loading…
Reference in a new issue