summaryrefslogtreecommitdiff
path: root/sys/core/audio.nix
diff options
context:
space:
mode:
authoradikro <adikro@disroot.org>2025-12-20 03:14:45 +0100
committeradikro <adikro@disroot.org>2025-12-20 03:14:45 +0100
commit791bc419b6dac7c70951981ef6b34cdf85828470 (patch)
tree56d0962fdf829ae942feb1344763e54dbc3c89a3 /sys/core/audio.nix
parente60410393cea222b16743a1a87f29c06b9b3543b (diff)
absolutely massive rewrite, made (almost) everything modular with changes to come
Diffstat (limited to 'sys/core/audio.nix')
-rw-r--r--sys/core/audio.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/sys/core/audio.nix b/sys/core/audio.nix
new file mode 100644
index 0000000..f855ad0
--- /dev/null
+++ b/sys/core/audio.nix
@@ -0,0 +1,31 @@
+{ config, lib, pkgs, ... }:
+let
+ cfg = config.szpont.sys.core.audio;
+in
+{
+ options.szpont.sys.core.audio.enable = lib.mkEnableOption "audio support";
+
+ config = lib.mkIf cfg.enable {
+ services = {
+ pipewire = {
+ enable = true;
+ audio.enable = true;
+ pulse.enable = true;
+ alsa.enable = true;
+ alsa.support32Bit = true;
+ jack.enable = true;
+ wireplumber.enable = true;
+ };
+ playerctld.enable = true;
+ spotifyd.enable = true;
+ };
+
+ security.rtkit.enable = true;
+ hardware.enableAllFirmware = true;
+
+ environment.systemPackages = with pkgs; [
+ helvum
+ alsa-utils
+ ];
+ };
+}