nix infra
13a84e242e
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/50d4d13fbac5db81f8c1e79d95ad87a2970b9201' (2024-06-24) → 'github:nix-community/disko/dd4d1663ccf7fbdb32361b9afe9e71206584cd4c' (2024-06-24) • Updated input 'kyouma-www': 'git+https://woof.rip/emily/kyouma-net.git?ref=refs/heads/main&rev=26e75b430bf10136da4855a6d5bf6ca98181eac2' (2024-06-19) → 'git+https://woof.rip/emily/kyouma-net.git?ref=refs/heads/main&rev=fc34094fc69e69e217db1bf17d82b9d0bf3b2cc4' (2024-06-24) • Updated input 'nixvim': 'github:nix-community/nixvim/49452662b7b4dd2467cbac19e0f9820d570d8976' (2024-06-22) → 'github:nix-community/nixvim/66c8592b31845cb0a1335ecc31ea40e89bed1a38' (2024-06-24) • Updated input 'nixvim/nix-darwin': 'github:lnl7/nix-darwin/29b3096a6e283d7e6779187244cb2a3942239fdf' (2024-06-17) → 'github:lnl7/nix-darwin/50581970f37f06a4719001735828519925ef8310' (2024-06-23) • Updated input 'sops-nix': 'github:Mic92/sops-nix/5e2e9421e9ed2b918be0a441c4535cfa45e04811' (2024-06-23) → 'github:Mic92/sops-nix/c2ea1186c0cbfa4d06d406ae50f3e4b085ddc9b3' (2024-06-24) • Updated input 'stylix': 'github:danth/stylix/0fc4e9f1449a9dce4be7a1ecedd97949da591181' (2024-06-23) → 'github:danth/stylix/7cdbd128172d7c4ec63f5073d49da5d0e7d6396c' (2024-06-24) |
||
---|---|---|
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