NixOS & Home Manager Config
Go to file
2025-02-16 16:20:42 -05:00
home-manager add nix lsp 2025-01-26 21:27:14 -05:00
hosts xen + democratic csi 2025-02-16 16:20:42 -05:00
k8s xen + democratic csi 2025-02-16 16:20:42 -05:00
lib configure cluster 2025-01-27 20:22:18 -05:00
.gitignore xen + democratic csi 2025-02-16 16:20:42 -05:00
flake.nix xen + democratic csi 2025-02-16 16:20:42 -05:00
README.md xen + democratic csi 2025-02-16 16:20:42 -05:00

Description

This repository contains the configuration for multiple machines, as well as my home / IDE config (home-manager).

Home Manager

Utilizing Home Manager

NixOS

Copy Config

scp -r * root@10.10.10.10:/etc/nixos

Partition Drives

# Validate Disk
ls -l /dev/disk/by-id

# Partition Disk
# WARNING: This will destroy all data on the disk(s)
sudo nix \
    --experimental-features "nix-command flakes" \
    run github:nix-community/disko -- \
    --mode disko \
    --flake /etc/nixos#lin-va-rke1

Install NixOS

# Install
sudo nixos-install --flake /etc/nixos#lin-va-rke1

# Reboot
sudo reboot

Copy Config Back to Host

scp -r * nixos@10.0.20.201:/etc/nixos

Rebuild NixOS

sudo nixos-rebuild switch

Install Kubernetes (RKE2)

# Deploy First Node
sudo nixos-install --flake /etc/nixos#lin-va-rke1

# Reboot & Get Token
cat /var/lib/rancher/rke2/server/node-token

# Deploy Following Nodes
echo "<TOKEN>" > ./_scratch/rke2-token
sudo nixos-install --flake /etc/nixos#lin-va-rke2

Notes

Kasten Port Forward

kubectl port-forward -n kasten svc/gateway 8000:80