nix infra
e22018873d
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/4d5d07d37ff773338e40a92088f45f4f88e509c8' (2025-01-09) → 'github:nix-community/disko/b1a94497b1c27fe7f81e3e76990959f5051da18b' (2025-01-10) • Updated input 'firefox': 'git+https://woof.rip/mikael/firefox.git?ref=refs/heads/main&rev=16024e9e6f65db8325fd1494d6d840dadcd85a5a' (2025-01-07) → 'git+https://woof.rip/mikael/firefox.git?ref=refs/heads/main&rev=f1bfbd81d78b268f06071ef7845ca357d8c7bc99' (2025-01-10) • Updated input 'florp-moderation': 'git+https://woof.rip/florp/moderation.git?ref=refs/heads/main&rev=81f0a4377c1218d328e7996636a02faf0597efa0' (2024-11-21) → 'git+https://woof.rip/florp/moderation.git?ref=refs/heads/main&rev=414459a448fcbf333adc6616eb82ca1cfc328b93' (2025-01-07) • Updated input 'home-manager': 'github:nix-community/home-manager/d4aebb947a301b8da8654a804979a738c5c5da50' (2025-01-09) → 'github:nix-community/home-manager/2532b500c3ed2b8940e831039dcec5a5ea093afc' (2025-01-10) • Updated input 'sops-nix': 'github:Mic92/sops-nix/c9c88f08e3ee495e888b8d7c8624a0b2519cb773' (2025-01-06) → 'github:Mic92/sops-nix/f214c1b76c347a4e9c8fb68c73d4293a6820d125' (2025-01-10) • Updated input 'stylix': 'github:danth/stylix/168306ce7f5d823ccee8b7d4e112ea20671c2b8f' (2025-01-08) → 'github:danth/stylix/f1e003194cb528bbd4eda50b781d1f703611782d' (2025-01-10) |
||
---|---|---|
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