2023-01-03 05:16:12 +01:00
|
|
|
# C3D2 NixOS user module
|
|
|
|
|
|
|
|
NixOS module intended to be used by people regularly visiting C3D2 and wanting to stream audio, have a filled known_host's file, etc.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
Add or merge the following settings to your `flake.nix`:
|
|
|
|
|
|
|
|
```nix
|
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
c3d2-user-module.url = "git+https://gitea.c3d2.de/C3D2/nix-user-module.git";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { c3d2-user-module }: {
|
|
|
|
nixosConfigurations.HOSTNAME = {
|
|
|
|
modules = [
|
2023-01-04 21:08:50 +01:00
|
|
|
c3d2-user-module.nixosModule
|
2023-01-03 05:16:12 +01:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Design
|
|
|
|
|
|
|
|
* Modules should never change the configuration without setting an option
|
|
|
|
|
|
|
|
## Structure
|
|
|
|
|
2023-01-04 04:14:05 +01:00
|
|
|
This is based on [sandro's nixos-modules (on GitHub)](https://github.com/superSandro2000/nixos-modules) and follows the same structure and design.
|