nix infra
fd0adcb87f
Flake lock file updates: • Updated input 'disko': 'github:nix-community/disko/23c63fb09334c3e8958b57e2ddc3870b75b9111d' (2024-05-22) → 'github:nix-community/disko/7ffc4354dfeb37c8c725ae1465f04a9b45ec8606' (2024-05-23) • Updated input 'home-manager': 'github:nix-community/home-manager/e3ad5108f54177e6520535768ddbf1e6af54b59d' (2024-05-17) → 'github:nix-community/home-manager/850cb322046ef1a268449cf1ceda5fd24d930b05' (2024-05-23) • Updated input 'nixvim': 'github:nix-community/nixvim/5d2e01495944dcf7cf7ee53a7074c4010165d756' (2024-05-21) → 'github:nix-community/nixvim/56aaef010ad9afae1730337e8ce71060fbcaa542' (2024-05-23) • Updated input 'nixvim/nix-darwin': 'github:lnl7/nix-darwin/ffc01182f90118119930bdfc528c1ee9a39ecef8' (2024-05-16) → 'github:lnl7/nix-darwin/eac4f25028c1975a939c8f8fba95c12f8a25e01c' (2024-05-21) • Updated input 'nixvim/pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/fa606cccd7b0ccebe2880051208e4a0f61bfc8c1' (2024-05-16) → 'github:cachix/pre-commit-hooks.nix/0e8fcc54b842ad8428c9e705cb5994eaf05c26a0' (2024-05-20) • Updated input 'stylix': 'github:danth/stylix/e7543c51eff9e73c85450c473e1f24513a5e0a0f' (2024-05-22) → 'github:danth/stylix/290c8aef476ce98fff9cefc059284429d561a085' (2024-05-23) |
||
---|---|---|
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