This commit is contained in:
RingOfStorms (Joshua Bell) 2024-12-16 02:39:03 -06:00
parent 6256010acd
commit ce5b732dfa
7 changed files with 156 additions and 114 deletions

View file

@ -6,7 +6,7 @@
}:
with lib;
let
name = "audio_pulse";
name = "audio";
cfg = config.mods.${name};
in
{
@ -18,8 +18,22 @@ in
config = mkIf cfg.enable {
# Enable sound.
hardware.pulseaudio.enable = true;
hardware.pulseaudio.package = pkgs.pulseaudioFull;
environment.systemPackages = [ pkgs.pavucontrol ];
# sound.enable = true;
# services.pipewire.pulse.enable = false;
# services.pipewire.enable = false;
# services.pipewire.audio.enable =false;
# hardware.pulseaudio.enable = true;
# hardware.pulseaudio.package = pkgs.pulseaudioFull;
# environment.systemPackages = [ pkgs.pavucontrol ];
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
#jack.enable = true;
};
};
}

26
modules/saber.nix Normal file
View file

@ -0,0 +1,26 @@
{
config,
lib,
pkgs,
settings,
...
}:
with lib;
let
name = "saber";
cfg = config.mods.${name};
in
{
options = {
mods.${name} = {
enable = mkEnableOption (lib.mdDoc "Enable ${name}");
};
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
saber
];
};
}

View file

@ -19,10 +19,11 @@
'';
}
{
assertion = !(config.mods.de_cosmic.enable && config.mods.audio_pulse.enable);
# // TODO check sinc epoulse is no longer
assertion = !(config.mods.de_cosmic.enable && config.mods.audio.enable);
message = ''
Configuration Error: cannot use pulse audio with cosmic.
Remove: mods.audio_pulse.enable
Configuration Error: cannot use audio with cosmic. Check if this is true anymore...
Remove: mods.audio.enable
'';
}
];