diff options
author | Franck Cuny <franck@fcuny.net> | 2023-05-02 07:46:43 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2023-05-02 07:46:43 -0700 |
commit | 116ea629895aa3c6395c659e95f7495c275d696c (patch) | |
tree | e42bcbc6b179e89e6205659ea14e00d157f297dd /modules/hardware | |
parent | profiles/workstation: moved more things around (diff) | |
download | world-116ea629895aa3c6395c659e95f7495c275d696c.tar.gz |
profiles/workstation: consolidate sound related configurations
Diffstat (limited to '')
-rw-r--r-- | modules/hardware/default.nix | 2 | ||||
-rw-r--r-- | modules/hardware/sound/default.nix | 37 |
2 files changed, 1 insertions, 38 deletions
diff --git a/modules/hardware/default.nix b/modules/hardware/default.nix index 21e4713..6d1441f 100644 --- a/modules/hardware/default.nix +++ b/modules/hardware/default.nix @@ -1,5 +1,5 @@ { ... }: { - imports = [ ./amd ./bluetooth ./intel ./ssd ./sound ./networking ]; + imports = [ ./amd ./bluetooth ./intel ./ssd ./networking ]; } diff --git a/modules/hardware/sound/default.nix b/modules/hardware/sound/default.nix deleted file mode 100644 index edb937e..0000000 --- a/modules/hardware/sound/default.nix +++ /dev/null @@ -1,37 +0,0 @@ -{ config, lib, pkgs, ... }: -let cfg = config.my.hardware.sound; -in -{ - options.my.hardware.sound = with lib; { - pipewire = { enable = mkEnableOption "pipewire configuration"; }; - }; - - config = lib.mkIf cfg.pipewire.enable { - sound.enable = true; - - # RealtimeKit is recommended - security.rtkit.enable = true; - - environment.systemPackages = with pkgs; [ - # We install it to get access to pactl. It isn't enabled or run as a service. - pulseaudio - pavucontrol - easyeffects - ]; - - services.pipewire = { - enable = true; - - alsa = { - enable = true; - support32Bit = true; - }; - - pulse = { enable = true; }; - - jack = { enable = true; }; - }; - - hardware.pulseaudio.enable = false; - }; -} |