nix infra
6f96e220e3
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/4ef99d8ec41369b6fbe83479b5566c2b8856972c' (2024-09-13) → 'github:nix-community/disko/3632080c41d7a657995807689a08ef6c4bcb2c72' (2024-09-14) • Updated input 'home-manager': 'github:nix-community/home-manager/503af483e1b328691ea3a434d331995595fb2e3d' (2024-09-13) → 'github:nix-community/home-manager/e524c57b1fa55d6ca9d8354c6ce1e538d2a1f47f' (2024-09-14) • Updated input 'nixvim': 'github:nix-community/nixvim/4e5bd1d79bb88b98e4d23241096989373150112c' (2024-09-13) → 'github:nix-community/nixvim/61be7a6eed7b6e70db9731cdf32d6a3e163cee73' (2024-09-15) • Updated input 'nixvim/flake-parts': 'github:hercules-ci/flake-parts/567b938d64d4b4112ee253b9274472dc3a346eb6' (2024-09-01) → 'github:hercules-ci/flake-parts/bcef6817a8b2aa20a5a6dbb19b43e63c5bf8619a' (2024-09-12) • Updated input 'nixvim/nix-darwin': 'github:lnl7/nix-darwin/f4f18f3d7229845e1c9d517457b7a0b90a38b728' (2024-09-11) → 'github:lnl7/nix-darwin/21fe31f26473c180390cfa81e3ea81aca0204c80' (2024-09-13) • Updated input 'nixvim/nuschtosSearch': 'github:NuschtOS/search/9eaa0246f803758c26f00d21188de00098b79c8b' (2024-09-10) → 'github:NuschtOS/search/4267d5c5b51591a9553eefbd12172da050ee3433' (2024-09-13) |
||
---|---|---|
config | ||
lib/shinyflakes | ||
modules | ||
pkgs | ||
secrets/services | ||
.gitignore | ||
.sops.yaml | ||
flake.lock | ||
flake.nix | ||
fly.toml | ||
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