mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
feat(mediabox): tailscale
This commit is contained in:
parent
f2c17ff757
commit
2447ae560b
6 changed files with 20 additions and 3 deletions
|
|
@ -237,7 +237,11 @@
|
||||||
"address6": "fd0a::be24:11ff:fe34:f4a8",
|
"address6": "fd0a::be24:11ff:fe34:f4a8",
|
||||||
"macAddress": "BC:24:11:34:F4:A8"
|
"macAddress": "BC:24:11:34:F4:A8"
|
||||||
},
|
},
|
||||||
"tail": null
|
"tail": {
|
||||||
|
"address4": "100.104.170.16",
|
||||||
|
"address6": "fd7a:115c:a1e0::ee01:aa11",
|
||||||
|
"macAddress": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,15 @@ _: {
|
||||||
modules = [
|
modules = [
|
||||||
./nixos.nix
|
./nixos.nix
|
||||||
];
|
];
|
||||||
|
network.networks = {
|
||||||
|
tail = {
|
||||||
|
address4 = "100.104.170.16";
|
||||||
|
address6 = "fd7a:115c:a1e0::ee01:aa11";
|
||||||
|
};
|
||||||
|
};
|
||||||
exports = {
|
exports = {
|
||||||
services = {
|
services = {
|
||||||
|
tailscale.enable = true;
|
||||||
nginx = {
|
nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ports.proxied.enable = true;
|
ports.proxied.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@
|
||||||
"/mnt/kyuuto-media/downloads/deluge mnt/kyuuto-media/downloads/deluge none bind,optional,create=dir",
|
"/mnt/kyuuto-media/downloads/deluge mnt/kyuuto-media/downloads/deluge none bind,optional,create=dir",
|
||||||
"/rpool/caches/plex mnt/caches/plex none bind,optional,create=dir",
|
"/rpool/caches/plex mnt/caches/plex none bind,optional,create=dir",
|
||||||
"/rpool/shared/plex mnt/shared/plex none bind,optional,create=dir",
|
"/rpool/shared/plex mnt/shared/plex none bind,optional,create=dir",
|
||||||
|
"/dev/net/tun dev/net/tun none bind,optional,create=file",
|
||||||
"/dev/kfd dev/kfd none bind,optional,create=file",
|
"/dev/kfd dev/kfd none bind,optional,create=file",
|
||||||
"/dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file"
|
"/dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file"
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ in {
|
||||||
in [
|
in [
|
||||||
nixos.reisen-ct
|
nixos.reisen-ct
|
||||||
nixos.sops
|
nixos.sops
|
||||||
|
nixos.tailscale
|
||||||
nixos.nginx
|
nixos.nginx
|
||||||
nixos.access.plex
|
nixos.access.plex
|
||||||
nixos.access.deluge
|
nixos.access.deluge
|
||||||
|
|
|
||||||
|
|
@ -143,7 +143,11 @@
|
||||||
"address6": "fd0a::be24:11ff:fe34:f4a8",
|
"address6": "fd0a::be24:11ff:fe34:f4a8",
|
||||||
"macAddress": "BC:24:11:34:F4:A8"
|
"macAddress": "BC:24:11:34:F4:A8"
|
||||||
},
|
},
|
||||||
"tail": null
|
"tail": {
|
||||||
|
"address4": "100.104.170.16",
|
||||||
|
"address6": "fd7a:115c:a1e0::ee01:aa11",
|
||||||
|
"macAddress": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -142,7 +142,7 @@ EOT
|
||||||
|
|
||||||
disk {
|
disk {
|
||||||
datastore_id = "local-zfs"
|
datastore_id = "local-zfs"
|
||||||
size = 30
|
size = 35
|
||||||
}
|
}
|
||||||
|
|
||||||
initialization {
|
initialization {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue