forked from emily/nixfiles
nix infra
e66731bd82
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/09a776702b004fdf9c41a024e1299d575ee18a7d' (2024-10-23) → 'github:nix-community/disko/58cd832497f9c87cb4889744b86aba4284fd0474' (2024-10-26) • Updated input 'nixvim': 'github:nix-community/nixvim/4726334e4413ff55f1db3768c8d08722abbf09cf' (2024-10-24) → 'github:nix-community/nixvim/bb0e3892a27efdc6f9c1771927f513577cb1c671' (2024-10-26) • Updated input 'nixvim/nix-darwin': 'github:lnl7/nix-darwin/04193f188e4144d7047f83ad1de81d6034d175cd' (2024-10-24) → 'github:lnl7/nix-darwin/7840909b00fbd5a183008a6eb251ea307fe4a76e' (2024-10-25) • Updated input 'nixvim/nuschtosSearch': 'github:NuschtOS/search/bedc2f2ada220815a98a896e10f5e61bfc329bfc' (2024-10-24) → 'github:NuschtOS/search/b35c0b1cbbcc42161c07c77419c2801d461f1401' (2024-10-24) • Updated input 'sops-nix': 'github:Mic92/sops-nix/78a0e634fc8981d6b564f08b6715c69a755c4c7d' (2024-10-24) → 'github:Mic92/sops-nix/b2211d1a537136cc1d0d5c0af391e8712016b34e' (2024-10-26) • Updated input 'stylix': 'github:danth/stylix/fb9399b7e2c855f42dae76a363bab28d4f24aa8d' (2024-10-19) → 'github:danth/stylix/04afcfc0684d9bbb24bb1dc77afda7c1843ec93b' (2024-10-26) |
||
---|---|---|
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