nixos-config/modules/sound.nix
Charlotte Van Petegem 0df4d5654f
Finish modularising config
There are still some things I want to change, but at least there aren't two systems now.
2021-06-27 00:32:31 +02:00

29 lines
558 B
Nix

{ config, lib, pkgs, ... }:
{
options.chvp.sound.enable = lib.mkOption {
default = false;
example = true;
};
config = lib.mkIf config.chvp.sound.enable {
chvp.zfs.homeLinks = [
{ path = ".config/pipewire"; type = "cache"; }
];
home-manager.users.charlotte = { ... }: {
home.packages = with pkgs; [
pavucontrol
qjackctl
];
};
sound.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
jack.enable = true;
pulse.enable = true;
};
};
}