NixOS module intended to be used by people regularly visiting C3D2 and wanting to stream audio, have a filled known_host's file, etc
Sandro -
578b3e8f6a
Flake lock file updates: • Updated input 'nixos-modules': 'github:SuperSandro2000/nixos-modules/16c72b4c01948a5d3db1445ccbd8daefa10d74ef' (2023-01-09) → 'github:SuperSandro2000/nixos-modules/d06e5fde7fdc1847322e9b30f83a32c380eb2f20' (2023-05-04) • Updated input 'nixpkgs-lib': 'github:nix-community/nixpkgs.lib/080b7eb536d3baf70796dcc20abe4ee90618ca3c' (2023-01-08) → 'github:nix-community/nixpkgs.lib/367c0e1086a4eb4502b24d872cea2c7acdd557f4' (2023-04-09) |
||
---|---|---|
modules | ||
README.md | ||
flake.lock | ||
flake.nix |
README.md
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
:
{
inputs = {
c3d2-user-module.url = "git+https://gitea.c3d2.de/C3D2/nix-user-module.git";
};
outputs = { c3d2-user-module }: {
nixosConfigurations.HOSTNAME = {
modules = [
c3d2-user-module.nixosModule
];
};
}
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. After enabling this option runsystemctl --user restart pulseaudio
orsystemctl --user restart pipewire-pulse
. If that is not working logout of your session and log back in.c3d2.addBinaryCache
: set to true to add the c3d2 hydra as permanent trusted-substituter.
Design
- Modules should never change the configuration without setting an option
Structure
This is based on sandro's nixos-modules (on GitHub) and follows the same structure and design.