move pipewire to its own file

This commit is contained in:
Miranda Marquez 2024-04-11 12:54:52 -08:00
parent f375357cb4
commit 60d2f5a347
3 changed files with 25 additions and 18 deletions

View File

@ -114,23 +114,6 @@
};
};
# Enable sound with pipewire.
# sound.enable = true;
hardware.pulseaudio.enable = false;
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;
# 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;
};
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;

View File

@ -48,7 +48,8 @@
./configuration.nix {
networking.hostName = "kremzeek";
boot.loader.efi.canTouchEfiVariables = true;
sound.enable = true;
# sound.enable = true;
# hardware.pulseaudio.enable = true;
}
home-manager.nixosModules.home-manager
{
@ -79,6 +80,7 @@
sound.enable = true; # only on unstable?
}
./hardware/galvatron-hw.nix
./modules/sound/pipewire.nix
inputs.apple-silicon.nixosModules.apple-silicon-support
inputs.home-manager-unstable.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
@ -101,6 +103,7 @@
}
./server/services.nix
./hardware/breakdown-hw.nix
./modules/sound/pipewire.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
@ -123,6 +126,7 @@
sound.enable = true;
}
./hardware/starscream-hw.nix
./modules/sound/pipewire.nix
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
@ -150,6 +154,7 @@
}
./modules/droidcam-obs.nix # only this machine
./hardware/knockout-hw.nix
./modules/sound/pipewire.nix
inputs.home-manager-unstable.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;

View File

@ -0,0 +1,19 @@
{ config, lib, pkgs, nixos-unstable, inputs, ... }:
{
# Enable sound with pipewire.
sound.enable = true;
hardware.pulseaudio.enable = false;
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;
# 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;
};
}