nix infra
3b20fb40d5
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/341482e2f4d888e3f60cae1c12c3df896e7230d8' (2024-11-27) → 'github:nix-community/disko/2814a5224a47ca19e858e027f7e8bff74a8ea9f1' (2024-11-30) • Updated input 'firefox': 'git+https://woof.rip/mikael/firefox.git?ref=refs/heads/main&rev=cf453c076add9ee34542a318fa7a7a865087921b' (2024-11-28) → 'git+https://woof.rip/mikael/firefox.git?ref=refs/heads/main&rev=176c87bbd0de2ffb6b1409c0aa107eed488166ce' (2024-11-30) • Updated input 'firefox/eosyn': 'git+https://woof.rip/mikael/eosyn.git?ref=refs/heads/main&rev=29adbc654463e677bc8bfbfa311c765584446bd8' (2024-11-28) → 'git+https://woof.rip/mikael/eosyn.git?ref=refs/heads/main&rev=811b0cd5ec81d3c56ede883dd0ba9ef95ffffc12' (2024-11-29) • Updated input 'home-manager': 'github:nix-community/home-manager/2f7739d01080feb4549524e8f6927669b61c6ee3' (2024-11-28) → 'github:nix-community/home-manager/c1fee8d4a60b89cae12b288ba9dbc608ff298163' (2024-12-01) • Updated input 'nixos-hardware': 'github:nixos/nixos-hardware/45348ad6fb8ac0e8415f6e5e96efe47dd7f39405' (2024-11-24) → 'github:nixos/nixos-hardware/fe01780d356d70fd119a19277bff71d3e78dad00' (2024-12-01) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/4633a7c72337ea8fd23a4f2ba3972865e3ec685d' (2024-11-25) → 'github:nixos/nixpkgs/970e93b9f82e2a0f3675757eb0bfc73297cc6370' (2024-11-28) • Updated input 'nixvim': 'github:nix-community/nixvim/05331006a42846d6e55129b642485f45f90c9efc' (2024-11-29) → 'github:nix-community/nixvim/838829c8f9cb238a915fe3d6ac36df1a3f040d2c' (2024-12-02) • Updated input 'nixvim/treefmt-nix': 'github:numtide/treefmt-nix/84637a7ab04179bdc42aa8fd0af1909fba76ad0c' (2024-11-26) → 'github:numtide/treefmt-nix/6209c381904cab55796c5d7350e89681d3b2a8ef' (2024-11-29) • Updated input 'stylix': 'github:danth/stylix/7689e621f87bce7b6ab1925dfd70ad1f4c80f334' (2024-11-26) → 'github:danth/stylix/d13ffb381c83b6139b9d67feff7addf18f8408fe' (2024-11-30) |
||
---|---|---|
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