nix infra
8c5e9dce84
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/341482e2f4d888e3f60cae1c12c3df896e7230d8' (2024-11-27) → 'github:nix-community/disko/785c1e02c7e465375df971949b8dcbde9ec362e5' (2024-12-02) • 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/bf23fe41082aa0289c209169302afd3397092f22' (2024-12-02) • Updated input 'nixos-hardware': 'github:nixos/nixos-hardware/45348ad6fb8ac0e8415f6e5e96efe47dd7f39405' (2024-11-24) → 'github:nixos/nixos-hardware/c6c90887f84c02ce9ebf33b95ca79ef45007bf88' (2024-12-02) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/4633a7c72337ea8fd23a4f2ba3972865e3ec685d' (2024-11-25) → 'github:nixos/nixpkgs/ac35b104800bff9028425fec3b6e8a41de2bbfff' (2024-12-01) • Updated input 'nixvim': 'github:nix-community/nixvim/05331006a42846d6e55129b642485f45f90c9efc' (2024-11-29) → 'github:nix-community/nixvim/e680b367c726e2ae37d541328fe81f8daaf49a6c' (2024-12-02) • Updated input 'nixvim/nix-darwin': 'github:lnl7/nix-darwin/6ab87b7c84d4ee873e937108c4ff80c015a40c7a' (2024-11-26) → 'github:lnl7/nix-darwin/c6b65d946097baf3915dd51373251de98199280d' (2024-12-02) • Updated input 'nixvim/nuschtosSearch': 'github:NuschtOS/search/fe07070f811b717a4626d01fab714a87d422a9e1' (2024-11-18) → 'github:NuschtOS/search/16307548b7a1247291c84ae6a12c0aacb07dfba2' (2024-11-30) • Updated input 'nixvim/treefmt-nix': 'github:numtide/treefmt-nix/84637a7ab04179bdc42aa8fd0af1909fba76ad0c' (2024-11-26) → 'github:numtide/treefmt-nix/6209c381904cab55796c5d7350e89681d3b2a8ef' (2024-11-29) • Updated input 'sops-nix': 'github:Mic92/sops-nix/3433ea14fbd9e6671d0ff0dd45ed15ee4c156ffa' (2024-11-25) → 'github:Mic92/sops-nix/c6134b6fff6bda95a1ac872a2a9d5f32e3c37856' (2024-12-02) • Updated input 'stylix': 'github:danth/stylix/7689e621f87bce7b6ab1925dfd70ad1f4c80f334' (2024-11-26) → 'github:danth/stylix/74ee1ed5057e44edbcc36aa189a91d31eda60485' (2024-12-02) |
||
---|---|---|
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