integrated sound settings into default systemConfig

This commit is contained in:
Aly Raffauf 2024-04-05 16:33:51 -04:00
parent d61c7002b4
commit 2690792a88
3 changed files with 31 additions and 30 deletions

View file

@ -2,7 +2,7 @@
{
imports =
[ ./network.nix ./sound.nix ./plymouth ./power-profiles-daemon ./zramSwap ];
[ ./network.nix ./plymouth ./power-profiles-daemon ./zramSwap ];
systemConfig.power-profiles-daemon.enable = lib.mkDefault true;
@ -25,6 +25,11 @@
};
};
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
hardware = {
# Enable Bluetooth connections.
bluetooth.enable = true;
@ -35,15 +40,34 @@
};
# Add support for configuring QMK keyboards with Via.
keyboard.qmk.enable = true;
pulseaudio = {
enable = lib.mkForce false;
# Enables extra codecs like aptx.
package = pkgs.pulseaudioFull;
};
};
services.logind.extraConfig = ''
# Don't shutdown when power button is short-pressed
HandlePowerKey=suspend
HandlePowerKeyLongPress=poweroff
'';
sound.enable = true;
security.polkit.enable = true;
services = {
logind.extraConfig = ''
# Don't shutdown when power button is short-pressed
HandlePowerKey=suspend
HandlePowerKeyLongPress=poweroff
'';
pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
};
security = {
polkit.enable = true;
rtkit.enable = true;
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;

View file

@ -31,11 +31,6 @@
];
};
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
services = {
# Enable avahi for auto network discovery.
avahi = {

View file

@ -1,18 +0,0 @@
{ config, pkgs, lib, ... }:
{
# Enable sound with pipewire.
sound.enable = true;
hardware.pulseaudio = {
enable = lib.mkForce false;
# Enables extra codecs like aptx.
package = pkgs.pulseaudioFull;
};
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
}