nix infra
9aa6e7d37a
Flake lock file updates: • Updated input 'firefox': 'git+https://woof.rip/mikael/firefox.git?ref=refs/heads/main&rev=505a4a8128befb4b51c1a47c3763a8061a26f751' (2025-01-06) → 'git+https://woof.rip/mikael/firefox.git?ref=refs/heads/main&rev=16024e9e6f65db8325fd1494d6d840dadcd85a5a' (2025-01-07) • Updated input 'home-manager': 'github:nix-community/home-manager/20665c6efa83d71020c8730f26706258ba5c6b2a' (2025-01-06) → 'github:nix-community/home-manager/5c4302313d9207f7ec0886d68f8ff4a3c71209a1' (2025-01-07) • Updated input 'nixos-hardware': 'github:nixos/nixos-hardware/ca30f8501ab452ca687a7fdcb2d43e1fb1732317' (2025-01-07) → 'github:nixos/nixos-hardware/4f339f6be2b61662f957c2ee9eda0fa597d8a6d6' (2025-01-07) • Updated input 'nixvim': 'github:nix-community/nixvim/a352bb89b0cd180f5c767689c4cc310109cd4ad8' (2025-01-07) → 'github:nix-community/nixvim/0ebc64a2328fc0a0532f9544eb6c6e297135962e' (2025-01-07) • Updated input 'stylix': 'github:danth/stylix/1d7b70ed9ee4c3b24ed6b0c7c64a0ee5fcc4ae10' (2025-01-06) → 'github:danth/stylix/168306ce7f5d823ccee8b7d4e112ea20671c2b8f' (2025-01-08) |
||
---|---|---|
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