nix infra
f0e2453e13
Flake lock file updates: • Updated input 'home-manager': 'github:nix-community/home-manager/5c4302313d9207f7ec0886d68f8ff4a3c71209a1' (2025-01-07) → 'github:nix-community/home-manager/7e00856596891850ba5ad4c5ecd2ed74468c08c5' (2025-01-08) • Updated input 'nixvim': 'github:nix-community/nixvim/0ebc64a2328fc0a0532f9544eb6c6e297135962e' (2025-01-07) → 'github:nix-community/nixvim/83153e96c25d989020d028af51cf947aa843dc3c' (2025-01-08) |
||
---|---|---|
config | ||
lib/shinyflakes | ||
modules | ||
pkgs | ||
secrets | ||
.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://woof.rip/emily/nixfiles.git#<configuration>" --no-reboot --build-on-target root@127.0.0.1
$ nixos-enter
$ passwd <local-user>
reboot
$ git clone https://woof.rip/emily/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