NixOS module intended to be used by people regularly visiting C3D2 and wanting to stream audio, have a filled known_host's file, etc
Go to file
Sandro - 8d1264244e
flake.lock: Update
Flake lock file updates:

• Updated input 'nixos-modules':
    'github:SuperSandro2000/nixos-modules/1b26dba504aecc4793fd91f42473ae120b5f3135' (2023-12-16)
  → 'github:SuperSandro2000/nixos-modules/2e9865e82f060907d4be682a514bdf0af86ad25e' (2023-12-30)
• Updated input 'nixpkgs-lib':
    'github:nix-community/nixpkgs.lib/9b4f1493009b8d2f55a525a01de10addc9a0a752' (2023-12-17)
  → 'github:nix-community/nixpkgs.lib/9b3a550ca7d42f5ceb3acc13f95dae1a69e6de56' (2023-12-24)
2023-12-31 01:30:40 +01:00
modules audio: use 23.11 features 2023-12-19 23:05:29 +01:00
README.md Fix syntax 2023-10-24 12:18:01 +02:00
flake.lock flake.lock: Update 2023-12-31 01:30:40 +01:00
flake.nix flake: use lib from the module system not the inputs 2023-06-02 11:41:18 +02:00

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 run systemctl --user restart pulseaudio or systemctl --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.