1
0
Fork 0
forked from emily/nixfiles
nix infra
Find a file
2024-05-13 12:17:37 +02:00
config removed darwin from hydra and added reboot option to upgrade script 2024-05-13 12:17:37 +02:00
lib/shinyflakes added system-upgrade pkg 2024-05-13 00:31:24 +02:00
modules added binary cache and some fixes 2024-05-11 16:07:51 +02:00
pkgs removed darwin from hydra and added reboot option to upgrade script 2024-05-13 12:17:37 +02:00
secrets/services added harmonia 2024-05-11 11:19:07 +02:00
.gitignore gitignore 2024-01-12 15:14:17 +01:00
.sops.yaml added harmonia 2024-05-11 11:19:07 +02:00
flake.lock added system-upgrade pkg 2024-05-13 00:31:24 +02:00
flake.nix added system-upgrade pkg 2024-05-13 00:31:24 +02:00
README.md add nixpkgs.hostplatform by default 2024-04-29 12:22:22 +02:00

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> 

Deploy changes on ...

all hosts

$ colmena apply --on @production

routers only

$ colmena apply --on @router

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