forked from emily/nixfiles
nix infra
914c0ed227
Flake lock file updates: • Updated input 'nixos-hardware': 'github:nixos/nixos-hardware/d6c6cf6f5fead4057d8fb2d5f30aa8ac1727f177' (2024-06-05) → 'github:nixos/nixos-hardware/057a7996d012f342a38a26261ee529cebb1755ef' (2024-06-08) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/e8057b67ebf307f01bdcc8fba94d94f75039d1f6' (2024-06-05) → 'github:nixos/nixpkgs/051f920625ab5aabe37c920346e3e69d7d34400e' (2024-06-07) • Updated input 'nixvim': 'github:nix-community/nixvim/552e8b0a8551acc43292d06258829fe0621980e2' (2024-06-07) → 'github:nix-community/nixvim/70088f6f8945023115f090f26764e5a71ae87a91' (2024-06-08) • Updated input 'stylix': 'github:danth/stylix/1d3826ceed91ae67562f28ee2e135813a11e47a6' (2024-06-05) → 'github:danth/stylix/ca3247ed8cfbf369f3fe1b7a421579812a95c101' (2024-06-08) |
||
---|---|---|
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://git.bsd.gay/snaki/nixfiles.git#<configuration>" --no-reboot --build-on-target root@127.0.0.1
$ nixos-enter
$ passwd <local-user>
reboot
$ git clone https://git.bsd.gay/snaki/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