Personal NixOS configuration managed with flakes. Heavily inspired by Vimjoyer work.
1 - Clone the repository
2 - Remove the existing hardware configuration if you want to use an already defined host:
rm -f hosts/<host>/hardware-configuration.nix3 - Regenerate the hardware configuration if you want to use an already defined host:
sudo nixos-generate-config --show-hardware-config > hosts/<host>/hardware-configuration.nix4 - Switch to the new configuration:
sudo nixos-rebuild switch --flake .#<host>1 - Clone the repository
2 - Do ur stuff
3 - Generate the hardware configuration:
sudo nixos-generate-config --show-hardware-config > hosts/<host>/hardware-configuration.nix4 - Switch to the new configuration:
sudo nixos-rebuild switch --flake .#<host>nix flake update
sudo nixos-rebuild switch --flake .#<host>Connect to the host "tour" and run the following command to run opencode with ollama
ollama launch opencodeTo ping a running vm from the host:
sudo ch-remote --api-socket /var/lib/microvms/{{vm-name}}/{{vm-name}}.sock pingsource ./scripts/fetch-k3s-kubeconfig.sh- https://www.youtube.com/watch?v=a67Sv4Mbxmc
- https://www.youtube.com/watch?v=vYc6IzKvAJQ
- https://github.com/Gabriella439/nixos-in-production
- https://www.youtube.com/watch?v=leR6m2plirs
- https://www.youtube.com/watch?v=2yplBzPCghA&t=134s
- https://www.joshuamlee.com/nixos-proxmox-vm-images/
- https://www.nijho.lt/post/proxmox-to-nixos/
- https://jrunestone.github.io/how-to-install-incus-lxd-on-nixos/
- https://microvm-nix.github.io/microvm.nix/
- https://determinate.systems/blog/nix-to-kubernetes/
- https://github.com/Gabriella439/nixos-in-production
- https://github.com/nix-community/nixos-anywhere
- https://paradigmatic.systems/posts/setting-up-deploy-rs/
- https://nlewo.github.io/nixos-manual-sphinx/index.html
- https://github.com/appleboy/ssh-action
- https://nix-tutorial.gitlabpages.inria.fr/nix-tutorial/index.html
- https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/cluster/k3s/docs/USAGE.md
- https://docs.k3s.io/cli/token
- https://github.com/microvm-nix/microvm.nix/blob/main/doc/src/microvm-command.md
- https://microvm-nix.github.io/microvm.nix/simple-network.html
- https://markaicode.com/ubuntu-networking-comparison/
- https://www.cloudhypervisor.org/docs/prologue/commands/
- https://www.w3tutorials.net/blog/conditional-needs-in-github-actions/
- https://docs.k3s.io/cluster-access
- https://oneuptime.com/blog/post/2026-03-06-use-flux-operator-managing-flux-instances/view
- https://olai.dev/blog/nix-cloudflare-tunnels/
- https://blog.stephane-robert.info/docs/conteneurs/orchestrateurs/outils/sealed-secrets/