nix infra
ab759667ee
Flake lock file updates: • Updated input 'nixos-hardware': 'github:nixos/nixos-hardware/f0cf56878046c42ec2096a2ade89203e7348917b' (2024-05-19) → 'github:nixos/nixos-hardware/d9e0b26202fd500cf3e79f73653cce7f7d541191' (2024-05-20) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/4a6b83b05df1a8bd7d99095ec4b4d271f2956b64' (2024-05-17) → 'github:nixos/nixpkgs/6c0b7a92c30122196a761b440ac0d46d3d9954f1' (2024-05-19) • Updated input 'nixvim': 'github:nix-community/nixvim/88ade1dfaa017499326103a078c66dd5d4d0606e' (2024-05-19) → 'github:nix-community/nixvim/5b09c711e28e9b41ad0fe094e7d62232c1e7c3de' (2024-05-20) • Updated input 'sops-nix': 'github:Mic92/sops-nix/0bf1808e70ce80046b0cff821c019df2b19aabf5' (2024-05-19) → 'github:Mic92/sops-nix/fddd52460e3332eedd8a0043af5675338a5b3e0b' (2024-05-20) • Updated input 'stylix': 'github:danth/stylix/76e7daf5a16d442ac98e844582f7dc1354610886' (2024-05-18) → 'github:danth/stylix/81df8443556335016d6f0bc22630a95776a56d8b' (2024-05-20) |
||
---|---|---|
config | ||
lib/shinyflakes | ||
modules | ||
pkgs | ||
secrets/services | ||
.gitignore | ||
.sops.yaml | ||
flake.lock | ||
flake.nix | ||
README.md |
emilys Nix Infra
First deployment
remote hosts
$ nix run github:nix-community/nixos-anywhere -- --flake ".#<configuration>" root@<target-host>
desktops
$ nix --extra-experimental-features nix-command run github:nix-community/nixos-anywhere -- --flake "git+https://git.bsd.gay/snaki/nixfiles.git#<configuration>" --no-reboot --build-on-target root@127.0.0.1
$ nixos-enter
$ passwd <local-user>
reboot
$ git clone https://git.bsd.gay/snaki/nixfiles.git
$ colmena apply-local --sudo --node <node>
Todo
- tomate (router dus)
- kartoffel
- most services
- brokkoli2 (router ams)
- alucard
- merge hetzner hosts
Structure
nixfiles
├── config # NixOS configuration
│ ├── common # configuration applyed to all hosts (some settings might be influenced by machine-type)
│ │ └── users # user configuration
│ ├── hosts # configuration for specific hosts
│ ├── profiles # configuariotn for specific machine types
│ └── services # common service configuration
├── lib # helper functions
├── modules # NixOS modules
└── pkgs # nixpkgs overlays