forked from emily/nixfiles
nix infra
a53651448d
Flake lock file updates: • Updated input 'home-manager': 'github:nix-community/home-manager/c559542f0aa87971a7f4c1b3478fe33cc904b902' (2024-06-21) → 'github:nix-community/home-manager/cd886711998fe5d9ff7979fdd4b4cbd17b1f1511' (2024-06-22) • Updated input 'nixos-hardware': 'github:nixos/nixos-hardware/e6d40db8924c3a663e1f76e0daed09510fea51c3' (2024-06-21) → 'github:nixos/nixos-hardware/e8232c132a95ddc62df9d404120ad4ff53862910' (2024-06-22) • Updated input 'nixvim': 'github:nix-community/nixvim/4e224d27ae0db889f92ef228ad6cb984b91777fb' (2024-06-21) → 'github:nix-community/nixvim/49452662b7b4dd2467cbac19e0f9820d570d8976' (2024-06-22) |
||
---|---|---|
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