forked from emily/nixfiles
nix infra
3ec6b8bb36
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/4698b1ef375e9c904037e0b2049aa73d39ac1b2d' (2024-07-23) → 'github:nix-community/disko/55e874b9c14764cb791e5740f0e92202e41393fc' (2024-07-25) • Updated input 'home-manager': 'github:nix-community/home-manager/7560dc942a6fbd37ebd1310b3dbda513de2d4b82' (2024-07-23) → 'github:nix-community/home-manager/304a011325b7ac7b8c9950333cd215a7aa146b0e' (2024-07-24) • Updated input 'nixos-hardware': 'github:nixos/nixos-hardware/405b654893aba16c8014de6a17e84439d3fb8e46' (2024-07-23) → 'github:nixos/nixos-hardware/a7432ebaefc9a400dcda399d48b949230378d784' (2024-07-24) • Updated input 'nixvim': 'github:nix-community/nixvim/ab67ee7e8b33e788fc53d26dc6f423f9358e3e66' (2024-07-23) → 'github:nix-community/nixvim/216d64c158da5523d5b3db0895e1345175c21502' (2024-07-24) • Updated input 'stylix': 'github:danth/stylix/0ef70039a6435446472182c8f8106947abfc523d' (2024-07-21) → 'github:danth/stylix/c974c17cd089dcbfb16fbde028dd00bcc05e3f73' (2024-07-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