nix infra
Find a file
2024-03-27 23:39:09 +01:00
config added lain 2024-03-27 23:39:09 +01:00
modules fixes 2024-02-28 16:20:45 +01:00
.gitignore gitignore 2024-01-12 15:14:17 +01:00
flake.lock flake.lock: Update 2024-03-24 19:55:24 +01:00
flake.nix added lain 2024-03-27 23:39:09 +01:00
README.md fixes 2024-02-28 22:43:20 +01: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
└── modules             # NixOS modules