mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 13:51:54 -05:00
integrated sound settings into default systemConfig
This commit is contained in:
parent
d61c7002b4
commit
2690792a88
|
@ -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 = ''
|
||||
sound.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;
|
||||
security = {
|
||||
polkit.enable = true;
|
||||
rtkit.enable = true;
|
||||
};
|
||||
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
|
|
@ -31,11 +31,6 @@
|
|||
];
|
||||
};
|
||||
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
|
||||
services = {
|
||||
# Enable avahi for auto network discovery.
|
||||
avahi = {
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue