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 Jäckel c4672b642d
flake.lock: Update
Flake lock file updates:

• Updated input 'nixos-modules':
    'github:SuperSandro2000/nixos-modules/4e41d2a44dde45e234a7795e5a502d21ad484d52' (2024-02-17)
  → 'github:NuschtOS/nixos-modules/7f722069914b360abfbc0ef973b7218e2b0ef880' (2024-06-16)
• Updated input 'nixos-modules/flake-utils':
    'github:numtide/flake-utils/1ef2e671c3b0c19053962c07dbda38332dcebf26' (2024-01-15)
  → 'github:numtide/flake-utils/b1d9ab70662946ef0850d488da1c9019f3a9752a' (2024-03-11)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/13aff9b34cc32e59d35c62ac9356e4a41198a538' (2024-02-26)
  → 'github:NixOS/nixpkgs/e9ee548d90ff586a6471b4ae80ae9cfcbceb3420' (2024-06-13)
2024-06-16 23:49:08 +02:00
modules binary-cache: use hydra domain directly 2024-05-21 20:07:56 +02:00
flake.lock flake.lock: Update 2024-06-16 23:49:08 +02:00
flake.nix Update nixos-modules 2024-01-09 21:57:34 +01:00
README.md Fix syntax 2023-10-24 12:18:01 +02: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:

{
  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.