1
0
Fork 0
forked from emily/nixfiles
nixfiles-emily/README.md

46 lines
1.3 KiB
Markdown
Raw Permalink Normal View History

2024-01-17 20:06:54 +01:00
# emilys Nix Infra
2024-05-16 14:28:11 +02:00
[Build Status](https://hydra.kyouma.net/jobset/nixfiles/main#tabs-jobs)
2024-02-27 19:07:12 +01:00
## First deployment
2024-02-28 22:43:20 +01:00
### remote hosts
2024-02-27 19:07:12 +01:00
```console
$ nix run github:nix-community/nixos-anywhere -- --flake ".#<configuration>" root@<target-host>
```
2024-02-28 22:43:20 +01:00
### desktops
```console
2024-06-20 14:18:21 +02:00
$ nix --extra-experimental-features nix-command run github:nix-community/nixos-anywhere -- --flake "git+https://woof.rip/emily/nixfiles.git#<configuration>" --no-reboot --build-on-target root@127.0.0.1
2024-02-28 22:43:20 +01:00
$ nixos-enter
$ passwd <local-user>
reboot
2024-06-20 14:18:21 +02:00
$ git clone https://woof.rip/emily/nixfiles.git
2024-02-28 22:43:20 +01:00
$ colmena apply-local --sudo --node <node>
```
2024-05-16 14:28:11 +02:00
## Todo
2024-02-28 22:43:20 +01:00
2024-05-16 14:28:11 +02:00
- tomate (router dus)
- kartoffel
- most services
- brokkoli2 (router ams)
- alucard
- merge hetzner hosts
2024-01-17 20:06:54 +01:00
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
2024-04-29 12:22:22 +02:00
├── lib # helper functions
├── modules # NixOS modules
└── pkgs # nixpkgs overlays
2024-02-05 22:22:40 +01:00
```