forked from emily/nixfiles
nix infra
1b2a6405b9
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/435737144be0259559ca3b43f7d72252b1fdcc1b' (2024-08-22) → 'github:nix-community/disko/b09eb605e376c9e95c87c0ef3fcb8008e11c8368' (2024-08-26) • Updated input 'hydra': 'git+https://git.lix.systems/snaakey/hydra.git?ref=refs/heads/main&rev=3c5c42385a4abff328e1bc2c1bac4701891570ec' (2024-08-25) → 'git+https://git.lix.systems/snaakey/hydra.git?ref=refs/heads/main&rev=ab6d81fad404af05dfeae7f74d1783a2f7367826' (2024-08-26) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/c374d94f1536013ca8e92341b540eba4c22f9c62' (2024-08-21) → 'github:nixos/nixpkgs/d0e1602ddde669d5beb01aec49d71a51937ed7be' (2024-08-24) • Updated input 'nixvim': 'github:nix-community/nixvim/8234ee85eaa2c8b7f2c74f5b4cdf02c4965b07fc' (2024-08-24) → 'github:nix-community/nixvim/eac092c876e4c4861c6df0cff93e25b972b1842c' (2024-08-26) • Updated input 'nixvim/nix-darwin': 'github:lnl7/nix-darwin/ea319a737939094b48fda9063fa3201ef2479aac' (2024-08-24) → 'github:lnl7/nix-darwin/ac5694a0b855a981e81b4d9f14052e3ff46ca39e' (2024-08-25) • Updated input 'nixvim/nuschtosSearch': 'github:NuschtOS/search/a05d1805f2a2bc47d230e5e92aecbf69f784f3d0' (2024-08-18) → 'github:NuschtOS/search/5a08d691de30b6fc28d58ce71a5e420f2694e087' (2024-08-25) • Updated input 'stylix': 'github:danth/stylix/d042af478ce87e188139480922a3085218194106' (2024-08-23) → 'github:danth/stylix/6c895c6b42ca205017abe72a7263baf36a197972' (2024-08-26) |
||
---|---|---|
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