nix-user-module/README.md

40 lines
1.2 KiB
Markdown
Raw Permalink Normal View History

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-10-24 12:18:01 +02:00
];
};
2023-01-03 05:16:12 +01:00
};
}
```
2023-01-04 21:55:28 +01:00
## Options
- `c3d2.addKnownHosts`: set to true to add the public ssh host keys to the known_hosts file.
- `c3d2.audioStreaming`: set to true to enable all services to audio stream to pulsebert, dacbert or glotzbert in hq.
2023-01-04 22:58:01 +01:00
After enabling this option run ``systemctl --user restart pulseaudio`` or ``systemctl --user restart pipewire-pulse``.
If that is not working logout of your session and log back in.
2023-01-04 23:23:25 +01:00
- `c3d2.addBinaryCache`: set to true to add the [c3d2 hydra](https://hydra.hq.c3d2.de/) as permanent trusted-substituter.
2023-01-04 21:55:28 +01:00
2023-01-03 05:16:12 +01:00
## Design
- Modules should never change the configuration without setting an option
2023-01-03 05:16:12 +01:00
## Structure
This is based on [sandro's nixos-modules (on GitHub)](https://github.com/superSandro2000/nixos-modules) and follows the same structure and design.