mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 07:53:55 -05:00
integrated sound settings into default systemConfig
This commit is contained in:
parent
d61c7002b4
commit
2690792a88
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
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;
|
systemConfig.power-profiles-daemon.enable = lib.mkDefault true;
|
||||||
|
|
||||||
|
@ -25,6 +25,11 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.gnupg.agent = {
|
||||||
|
enable = true;
|
||||||
|
enableSSHSupport = true;
|
||||||
|
};
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
# Enable Bluetooth connections.
|
# Enable Bluetooth connections.
|
||||||
bluetooth.enable = true;
|
bluetooth.enable = true;
|
||||||
|
@ -35,15 +40,34 @@
|
||||||
};
|
};
|
||||||
# Add support for configuring QMK keyboards with Via.
|
# Add support for configuring QMK keyboards with Via.
|
||||||
keyboard.qmk.enable = true;
|
keyboard.qmk.enable = true;
|
||||||
|
|
||||||
|
pulseaudio = {
|
||||||
|
enable = lib.mkForce false;
|
||||||
|
# Enables extra codecs like aptx.
|
||||||
|
package = pkgs.pulseaudioFull;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.logind.extraConfig = ''
|
sound.enable = true;
|
||||||
# Don't shutdown when power button is short-pressed
|
|
||||||
HandlePowerKey=suspend
|
|
||||||
HandlePowerKeyLongPress=poweroff
|
|
||||||
'';
|
|
||||||
|
|
||||||
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
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
|
@ -31,11 +31,6 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.gnupg.agent = {
|
|
||||||
enable = true;
|
|
||||||
enableSSHSupport = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
# Enable avahi for auto network discovery.
|
# Enable avahi for auto network discovery.
|
||||||
avahi = {
|
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