nix infra
f47911a4e7
Flake lock file updates: • Updated input 'home-manager': 'github:nix-community/home-manager/2cacdd6a27477f1fa46b7026dd806de30f164d3b' (2024-06-04) → 'github:nix-community/home-manager/a7117efb3725e6197dd95424136f79147aa35e5b' (2024-06-04) • Updated input 'nixos-hardware': 'github:nixos/nixos-hardware/7b49d3967613d9aacac5b340ef158d493906ba79' (2024-06-01) → 'github:nixos/nixos-hardware/82b2e20fbffe6a5f0555701af136ad3e734a5faa' (2024-06-04) • Updated input 'nixvim': 'github:nix-community/nixvim/b7a8b0319098fdbaa719ef4dc375337ec4543c6e' (2024-06-03) → 'github:nix-community/nixvim/cfff48c2673bb7ac2841201ed700d332b6d643ab' (2024-06-04) • Updated input 'stylix': 'github:danth/stylix/c760f63a44a98b2324fdebaee32831b1297172a1' (2024-06-03) → 'github:danth/stylix/85a0a92c3173ceebbca9b7ec692db79cff8ce91a' (2024-06-04) |
||
---|---|---|
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