2023-04-01 22:20:34 +02:00
|
|
|
# My nixOS configuration
|
2023-04-01 12:15:22 +02:00
|
|
|
|
|
|
|
## Structure
|
|
|
|
|
2023-04-24 21:19:08 +02:00
|
|
|
- `common`: Contains configuration that should be applied on every machine.
|
2023-04-01 12:15:22 +02:00
|
|
|
|
2023-04-24 21:19:08 +02:00
|
|
|
- `extra`: Non-Nix files, e.g. configuration files for other applications.
|
2023-04-01 12:15:22 +02:00
|
|
|
|
2023-04-24 21:19:08 +02:00
|
|
|
- `machines`: Host-specific configuration.
|
2023-04-01 12:15:22 +02:00
|
|
|
|
2023-07-28 23:13:28 +02:00
|
|
|
- `fort`: Public-reachable server on Hetzner infra.
|
|
|
|
|
2023-04-24 21:19:08 +02:00
|
|
|
- `name`: LXC container running unbound + blocky.
|
2023-04-01 22:20:34 +02:00
|
|
|
|
2023-05-02 23:01:07 +02:00
|
|
|
- `serv`: LXC container running different services, like sourcehut and paperless.
|
2023-04-22 15:00:19 +02:00
|
|
|
|
2023-04-24 21:19:08 +02:00
|
|
|
- `trek`: Framework laptop.
|
2023-04-08 18:33:17 +02:00
|
|
|
|
2023-07-04 15:44:17 +02:00
|
|
|
- `zero`: Main Ryzen 9 workstation.
|
|
|
|
|
2023-05-10 21:38:19 +02:00
|
|
|
- `modules`: Additional NixOS modules.
|
|
|
|
|
2023-04-24 21:19:08 +02:00
|
|
|
- `pkgs`: Custom packages.
|
2023-04-01 12:15:22 +02:00
|
|
|
|
2023-04-24 21:19:08 +02:00
|
|
|
- `secrets`: Secrects encrypted using [git-crypt](https://github.com/AGWA/git-crypt).
|
2023-04-01 12:15:22 +02:00
|
|
|
|
2023-04-24 21:19:08 +02:00
|
|
|
- `services`: Configuration for bigger service deployments, e.g. nginx.
|
2023-04-01 12:15:22 +02:00
|
|
|
|
2023-04-24 21:19:08 +02:00
|
|
|
- `system`: Configurations describing "classes" of machines, like servers or desktops.
|
2023-04-01 12:15:22 +02:00
|
|
|
|
2023-08-11 16:11:46 +02:00
|
|
|
### Notable files
|
|
|
|
|
|
|
|
- `default.nix`: Morph deployment definitions
|
|
|
|
|
|
|
|
- `flake.nix`: Nix development shell definition
|
|
|
|
|
|
|
|
- `sources.nix`: Contains all Nix package/module source definitions
|
|
|
|
|
2023-04-23 22:35:23 +02:00
|
|
|
## Hacking
|
|
|
|
|
2023-08-11 16:07:42 +02:00
|
|
|
`nix develop` will provide an ephemeral shell with all tools needed.
|
2023-04-24 16:13:58 +02:00
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
The code is released into the public domain.
|
|
|
|
|
|
|
|
Other conditions apply to the following files:
|
|
|
|
|
2023-08-11 16:12:02 +02:00
|
|
|
- `extra/sway/background.png`: [Photo](https://unsplash.com/photos/wQLAGv4_OYs) by [Lucas Kapla](https://unsplash.com/@aznbokchoy), [Unsplash License](https://unsplash.com/license)
|