forked from emily/nixfiles
nix infra
ec07bbcb11
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/e55f9a8678adc02024a4877c2a403e3f6daf24fe' (2024-09-03) → 'github:nix-community/disko/59fb64b36b0a1961f6d4c6d5b8db45cc35d040f2' (2024-09-12) • Updated input 'home-manager': 'github:nix-community/home-manager/8a1671642826633586d12ac3158e463c7a50a112' (2024-09-11) → 'github:nix-community/home-manager/da8406a6ff556b86dc368e96ca8bd81b2704a91a' (2024-09-12) • Updated input 'nixvim': 'github:nix-community/nixvim/11c133e89e4090c43445a2c3b5af2322831d7219' (2024-09-11) → 'github:nix-community/nixvim/27a0dd435dd3563f4cf9d788601fadfce8c59db6' (2024-09-12) • Updated input 'stylix': 'github:danth/stylix/ef81ad9e85e60420cc83d4642619c14b57139d33' (2024-09-02) → 'github:danth/stylix/35233f929629c8eb64e939e35260fc8347f94df9' (2024-09-12) |
||
---|---|---|
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