feat: remove tailscale from iso
This commit is contained in:
@@ -9,7 +9,7 @@ A quick guide on setting up new VMs / Servers in the Homelab with proxmox.
|
|||||||
This is to be run on the proxmox node.
|
This is to be run on the proxmox node.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
TAILSCALE_AUTH_KEY=<preauthkey> nix build --refresh --verbose --impure "git+https://gitea.ts.yadunut.com/yadunut/homelab.git#generate-iso"
|
nix build --refresh "git+https://gitea.ts.yadunut.com/yadunut/homelab.git#generate-iso"
|
||||||
```
|
```
|
||||||
Copy ISO Over to the VM
|
Copy ISO Over to the VM
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ function main() {
|
|||||||
echo "Attempting to retrieve IP Address"
|
echo "Attempting to retrieve IP Address"
|
||||||
start_time=$(date +%s)
|
start_time=$(date +%s)
|
||||||
while true; do
|
while true; do
|
||||||
if IP_ADDRESS="$(sudo qm agent "${VMID}" network-get-interfaces 2>/dev/null | jq -r '.[] | select(.name == "tailscale0") | .["ip-addresses"][] | select(.["ip-address-type"] == "ipv4")')"; then
|
if IP_ADDRESS="$(sudo qm agent "${VMID}" network-get-interfaces 2>/dev/null | jq -r '.[] | select(.name != "lo") | .["ip-addresses"][] | select(.["ip-address-type"] == "ipv4")')"; then
|
||||||
if [ -n "${IP_ADDRESS}" ]; then
|
if [ -n "${IP_ADDRESS}" ]; then
|
||||||
echo "Retrieved IP Address: ${IP_ADDRESS}"
|
echo "Retrieved IP Address: ${IP_ADDRESS}"
|
||||||
break
|
break
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{ config, lib, pkgs, meta, ...}:
|
{ config, lib, pkgs, ...}:
|
||||||
let tailscale_key = builtins.getEnv "TAILSCALE_AUTH_KEY";
|
{
|
||||||
in {
|
|
||||||
imports = [../common/users.nix];
|
imports = [../common/users.nix];
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
@@ -19,14 +18,7 @@ in {
|
|||||||
neovim
|
neovim
|
||||||
wget
|
wget
|
||||||
];
|
];
|
||||||
|
boot.loader.timeout = lib.mkForce 0;
|
||||||
environment.etc."tailscale/preAuthKey".text = tailscale_key;
|
|
||||||
|
|
||||||
services.tailscale = {
|
|
||||||
enable = true;
|
|
||||||
extraUpFlags = [ "--login-server" "http://ts.yadunut.com:444"];
|
|
||||||
authKeyFile = "/etc/tailscale/preAuthKey";
|
|
||||||
};
|
|
||||||
|
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user