chore: move pipewire conf into shared file

This commit is contained in:
Nydragon 2024-08-08 13:28:12 +02:00
parent 15e84c58e0
commit 300c34bdf1
Signed by: nydragon
SSH key fingerprint: SHA256:iQnIC12spf4QjWSbarmkD2No1cLMlu6TWoV7K6cYF5g
5 changed files with 12 additions and 16 deletions

View file

@ -39,12 +39,6 @@
}; };
services.dbus.enable = true; services.dbus.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
programs = { programs = {
dconf.enable = true; dconf.enable = true;
@ -90,8 +84,6 @@
eza eza
bat bat
swaynotificationcenter swaynotificationcenter
pipewire
wireplumber
]; ];
system.stateVersion = "24.05"; system.stateVersion = "24.05";

View file

@ -149,6 +149,7 @@
}; };
services.gnome.gnome-keyring.enable = true; services.gnome.gnome-keyring.enable = true;
services.flatpak.enable = true; services.flatpak.enable = true;
environment.variables = { environment.variables = {
@ -158,13 +159,6 @@
security.polkit.enable = true; security.polkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [

View file

@ -16,6 +16,7 @@
./home-manager.nix ./home-manager.nix
./system/mime.nix ./system/mime.nix
./env.nix ./env.nix
./printing.nix ./system/printing.nix
./system/audio.nix
]; ];
} }

9
modules/system/audio.nix Normal file
View file

@ -0,0 +1,9 @@
{
# Enables wireplumber automatically
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
}