nixfiles/README.md

33 lines
826 B
Markdown
Raw Normal View History

2024-01-17 20:06:54 +01:00
# emilys Nix Infra
2024-02-27 19:07:12 +01:00
## First deployment
```console
$ nix run github:nix-community/nixos-anywhere -- --flake ".#<configuration>" root@<target-host>
```
2024-01-17 20:06:54 +01:00
## Deploy changes on ...
### all hosts
```console
$ colmena apply --on @production
```
### routers only
```console
$ colmena apply --on @router
```
2024-02-05 22:22:40 +01:00
## 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
```