nix infra
7b26ec8a9f
Flake lock file updates: • Updated input 'home-manager': 'github:nix-community/home-manager/d7830d05421d0ced83a0f007900898bdcaf2a2ca' (2024-06-19) → 'github:nix-community/home-manager/c559542f0aa87971a7f4c1b3478fe33cc904b902' (2024-06-21) • Updated input 'nixos-hardware': 'github:nixos/nixos-hardware/acb4f0e9bfa8ca2d6fca5e692307b5c994e7dbda' (2024-06-19) → 'github:nixos/nixos-hardware/e6d40db8924c3a663e1f76e0daed09510fea51c3' (2024-06-21) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/b60ebf54c15553b393d144357375ea956f89e9a9' (2024-06-16) → 'github:nixos/nixpkgs/d603719ec6e294f034936c0d0dc06f689d91b6c3' (2024-06-20) • Updated input 'nixvim': 'github:nix-community/nixvim/16db91b37abbfded3c61822cd6d7a854954c6b2a' (2024-06-19) → 'github:nix-community/nixvim/4e224d27ae0db889f92ef228ad6cb984b91777fb' (2024-06-21) • Updated input 'nixvim/git-hooks': 'github:cachix/git-hooks.nix/cc4d466cb1254af050ff7bdf47f6d404a7c646d1' (2024-06-06) → 'github:cachix/git-hooks.nix/8cd35b9496d21a6c55164d8547d9d5280162b07a' (2024-06-20) • Updated input 'stylix': 'github:danth/stylix/7dcab0711bfc103a1fb05ba643ee7a3bd309fbe4' (2024-06-19) → 'github:danth/stylix/97dcf3c216fe5fb19c406e39f265d3bc9b851377' (2024-06-21) |
||
---|---|---|
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