nix infra
a4a7a3f444
Flake lock file updates: • Updated input 'home-manager': 'github:nix-community/home-manager/51160a097a850839b7eae7ef08d0d3e7e353dfc3' (2024-12-21) → 'github:nix-community/home-manager/edb8b00e4d17b2116b60eca50f38ac68f12b9ab4' (2024-12-22) • Updated input 'nixos-hardware': 'github:nixos/nixos-hardware/b12e314726a4226298fe82776b4baeaa7bcf3dcd' (2024-12-16) → 'github:nixos/nixos-hardware/e8516a23524cc9083f5a02a8d64d14770e4c7c09' (2024-12-22) • Updated input 'nixvim': 'github:nix-community/nixvim/6a4b4221c4ebf1140f73f8df769e97f1828d90fa' (2024-12-21) → 'github:nix-community/nixvim/450cccf472f40ae8e3b92eec9e5f4b071693ac85' (2024-12-22) • Updated input 'nixvim/git-hooks': 'github:cachix/git-hooks.nix/0ddd26d0925f618c3a5d85a4fa5eb1e23a09491d' (2024-12-17) → 'github:cachix/git-hooks.nix/f0f0dc4920a903c3e08f5bdb9246bb572fcae498' (2024-12-21) • Updated input 'stylix': 'github:danth/stylix/4f489c63932f014be856475154bf342f8a40f5ff' (2024-12-21) → 'github:danth/stylix/4d87b96ceca38532f39c1b7efd8a9235bfcee3d6' (2024-12-22) |
||
---|---|---|
config | ||
lib/shinyflakes | ||
modules | ||
pkgs | ||
secrets | ||
.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