Compare commits
3 Commits
798c01f48d
...
1383ff0044
Author | SHA1 | Date | |
---|---|---|---|
1383ff0044 | |||
794beccf80 | |||
d06dc2f39b |
@ -4,26 +4,59 @@ let
|
||||
cfg = config.de;
|
||||
in {
|
||||
config = lib.mkIf cfg.enable {
|
||||
# Audio
|
||||
sound.enable = true;
|
||||
|
||||
# enable pulseaudio support for packages
|
||||
nixpkgs.config.pulseaudio = true;
|
||||
|
||||
# realtime pulseaudio
|
||||
# realtime audio
|
||||
security.rtkit.enable = true;
|
||||
|
||||
hardware.pulseaudio = {
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
support32Bit = true;
|
||||
package = pkgs.pulseaudioFull; # bt headset support
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
|
||||
# TODO: switch on connect isn't working for some reason (at least when in kde)
|
||||
extraConfig = "
|
||||
load-module module-switch-on-connect
|
||||
load-module module-switch-on-connect ignore_virtual=no
|
||||
";
|
||||
# use the example session manager (no others are packaged yet so this is enabled by default,
|
||||
# no need to redefine it in your config for now)
|
||||
#media-session.enable = true;
|
||||
|
||||
config.pipewire = {
|
||||
"context.objects" = [
|
||||
{
|
||||
# A default dummy driver. This handles nodes marked with the "node.always-driver"
|
||||
# properyty when no other driver is currently active. JACK clients need this.
|
||||
factory = "spa-node-factory";
|
||||
args = {
|
||||
"factory.name" = "support.node.driver";
|
||||
"node.name" = "Dummy-Driver";
|
||||
"priority.driver" = 8000;
|
||||
};
|
||||
}
|
||||
{
|
||||
factory = "adapter";
|
||||
args = {
|
||||
"factory.name" = "support.null-audio-sink";
|
||||
"node.name" = "Microphone-Proxy";
|
||||
"node.description" = "Microphone";
|
||||
"media.class" = "Audio/Source/Virtual";
|
||||
"audio.position" = "MONO";
|
||||
};
|
||||
}
|
||||
{
|
||||
factory = "adapter";
|
||||
args = {
|
||||
"factory.name" = "support.null-audio-sink";
|
||||
"node.name" = "Main-Output-Proxy";
|
||||
"node.description" = "Main Output";
|
||||
"media.class" = "Audio/Sink";
|
||||
"audio.position" = "FL,FR";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
users.users.googlebot.extraGroups = [ "audio" ];
|
||||
|
||||
# bt headset support
|
||||
|
@ -30,6 +30,7 @@ in {
|
||||
# Applications
|
||||
users.users.googlebot.packages = with pkgs; [
|
||||
chromium keepassxc mumble tigervnc bluez-tools vscodium element-desktop mpv
|
||||
nextcloud-client signal-desktop minecraft sauerbraten
|
||||
];
|
||||
|
||||
# Networking
|
||||
|
@ -26,7 +26,7 @@
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/8C47-F740";
|
||||
{ device = "/dev/disk/by-uuid/4CD3-6ED6";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user