nix infra
c65d6696dd
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/0d510fe40b56ed74907a021d7e1ffd0042592914' (2024-08-12) → 'github:nix-community/disko/276a0d055a720691912c6a34abb724e395c8e38a' (2024-08-15) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/a58bc8ad779655e790115244571758e8de055e3d' (2024-08-11) → 'github:nixos/nixpkgs/c3aa7b8938b17aebd2deecf7be0636000d62a2b9' (2024-08-14) • Updated input 'nixvim': 'github:nix-community/nixvim/dbf6f7bc997dc3a9ab1f014ea075600357226950' (2024-08-12) → 'github:nix-community/nixvim/78fc4be6a830e8dc01f3e66ddbe3243b4bfe8560' (2024-08-17) • Updated input 'stylix': 'github:danth/stylix/5853f1a8bd072f2ebabfc3de3973084353cf6f1e' (2024-08-06) → 'github:danth/stylix/6858d08ed012bc6491cc92c13142104e56badf31' (2024-08-16) |
||
---|---|---|
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://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