forked from emily/nixfiles
nix infra
a303a8b42e
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/55e874b9c14764cb791e5740f0e92202e41393fc' (2024-07-25) → 'github:nix-community/disko/5b01cea8b5753de9c2febd27203c530be14745ff' (2024-07-26) • Updated input 'home-manager': 'github:nix-community/home-manager/304a011325b7ac7b8c9950333cd215a7aa146b0e' (2024-07-24) → 'github:nix-community/home-manager/bc2b96acda50229bc99925dde5c8e561e90b0b00' (2024-07-26) • Updated input 'nixos-hardware': 'github:nixos/nixos-hardware/d3c993c851ad40bbab7e08d566138ff72cd8744f' (2024-07-25) → 'github:nixos/nixos-hardware/0b4d40f95a68ef0a6785f6b938ac8c1383321dbf' (2024-07-26) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/dc14ed91132ee3a26255d01d8fd0c1f5bff27b2f' (2024-07-23) → 'github:nixos/nixpkgs/5ad6a14c6bf098e98800b091668718c336effc95' (2024-07-25) • Updated input 'nixvim': 'github:nix-community/nixvim/47b6c4804f69556dc22aa2a2e64721f216b69090' (2024-07-25) → 'github:nix-community/nixvim/162ae6354bbf2af5c33b09aa90e9d8d11f14462e' (2024-07-26) • Updated input 'stylix': 'github:danth/stylix/c974c17cd089dcbfb16fbde028dd00bcc05e3f73' (2024-07-24) → 'github:danth/stylix/b9de20c76e8d5c13cf2304d23cf589803c311670' (2024-07-26) |
||
---|---|---|
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