forked from emily/nixfiles
nix infra
1ed218b086
Flake lock file updates: • Updated input 'home-manager': 'github:nix-community/home-manager/5d151429e1e79107acf6d06dcc5ace4e642ec239' (2024-05-26) → 'github:nix-community/home-manager/10c7c219b7dae5795fb67f465a0d86cbe29f25fa' (2024-05-27) • Updated input 'nixos-hardware': 'github:nixos/nixos-hardware/2e7d6c568063c83355fe066b8a8917ee758de1b8' (2024-05-26) → 'github:nixos/nixos-hardware/9a20e17a73b052d6be912adcee220cb483477094' (2024-05-27) • Updated input 'nixvim': 'github:nix-community/nixvim/ba293d36403c39c22dbb9a928f9af4d0df54b79f' (2024-05-26) → 'github:nix-community/nixvim/a2afa5634495ee739e682e5ccb743c5c6dd90ec1' (2024-05-27) • Added input 'nixvim/git-hooks': 'github:cachix/git-hooks.nix/0e8fcc54b842ad8428c9e705cb5994eaf05c26a0' (2024-05-20) • Added input 'nixvim/git-hooks/flake-compat': 'github:edolstra/flake-compat/0f9255e01c2351cc7d116c072cb317785dd33b33' (2023-10-04) • Added input 'nixvim/git-hooks/gitignore': 'github:hercules-ci/gitignore.nix/637db329424fd7e46cf4185293b9cc8c88c95394' (2024-02-28) • Added input 'nixvim/git-hooks/gitignore/nixpkgs': follows 'nixvim/git-hooks/nixpkgs' • Added input 'nixvim/git-hooks/nixpkgs': follows 'nixvim/nixpkgs' • Added input 'nixvim/git-hooks/nixpkgs-stable': follows 'nixvim/nixpkgs' • Removed input 'nixvim/pre-commit-hooks' • Removed input 'nixvim/pre-commit-hooks/flake-compat' • Removed input 'nixvim/pre-commit-hooks/gitignore' • Removed input 'nixvim/pre-commit-hooks/gitignore/nixpkgs' • Removed input 'nixvim/pre-commit-hooks/nixpkgs' • Removed input 'nixvim/pre-commit-hooks/nixpkgs-stable' |
||
---|---|---|
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