forked from emily/nixfiles
nix infra
50be012843
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/51994df8ba24d5db5459ccf17b6494643301ad28' (2024-09-20) → 'github:nix-community/disko/b1d6bed240abef5f5373e88fc7909f493013e557' (2024-09-23) • Updated input 'home-manager': 'github:nix-community/home-manager/04213d1ce4221f5d9b40bcee30706ce9a91d148d' (2024-09-22) → 'github:nix-community/home-manager/21c021862fa696c8199934e2153214ab57150cb6' (2024-09-23) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/c04d5652cfa9742b1d519688f65d1bbccea9eb7e' (2024-09-19) → 'github:nixos/nixpkgs/9357f4f23713673f310988025d9dc261c20e70c6' (2024-09-21) • Updated input 'nixvim': 'github:nix-community/nixvim/a9345dcfc31519734361fecd246d32164feafbca' (2024-09-23) → 'github:nix-community/nixvim/a75c2235d920dfd443d52c134bb51aa458f26814' (2024-09-24) • Updated input 'nixvim/nix-darwin': 'github:lnl7/nix-darwin/c03f85fa42d68d1056ca1740f3113b04f3addff2' (2024-09-19) → 'github:lnl7/nix-darwin/bd7d1e3912d40f799c5c0f7e5820ec950f1e0b3d' (2024-09-22) • Updated input 'nixvim/nuschtosSearch': 'github:NuschtOS/search/7733a39a1321057172d87e6251ded7cdeb67171e' (2024-09-20) → 'github:NuschtOS/search/3b7dd61b365ca45380707453758a45f2e9977be3' (2024-09-22) • Updated input 'nixvim/nuschtosSearch/flake-utils': 'github:numtide/flake-utils/b1d9ab70662946ef0850d488da1c9019f3a9752a' (2024-03-11) → 'github:numtide/flake-utils/c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a' (2024-09-17) • Updated input 'stylix': 'github:danth/stylix/53bcceb4e46d0b3e8ae6434a7a6bcc3463092093' (2024-09-20) → 'github:danth/stylix/eccb9f2d63f4582b1c1ffe97d806156147aeee5f' (2024-09-23) |
||
---|---|---|
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