forked from emily/nixfiles
nix infra
6b1c20e449
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/a838e83e21502a211b83373109a260e5ef5fbcf1' (2024-06-04) → 'github:nix-community/disko/713aa3df481782719aed4d8c20ad31a9effe3564' (2024-06-06) • Updated input 'nixos-hardware': 'github:nixos/nixos-hardware/82b2e20fbffe6a5f0555701af136ad3e734a5faa' (2024-06-04) → 'github:nixos/nixos-hardware/d6c6cf6f5fead4057d8fb2d5f30aa8ac1727f177' (2024-06-05) • Updated input 'nixvim': 'github:nix-community/nixvim/cfff48c2673bb7ac2841201ed700d332b6d643ab' (2024-06-04) → 'github:nix-community/nixvim/f530700ccd2955ceb620cd12fc1f5b04d2c752f4' (2024-06-05) • Removed input 'nixvim/flake-root' • Updated input 'stylix': 'github:danth/stylix/85a0a92c3173ceebbca9b7ec692db79cff8ce91a' (2024-06-04) → 'github:danth/stylix/1d3826ceed91ae67562f28ee2e135813a11e47a6' (2024-06-05) |
||
---|---|---|
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