hiding sound stuff

This commit is contained in:
Ari Sosnovsky committed 2024-08-19 11:03:55 -04:00
1 parent e1087fcdcd
commit 3acdcd8d53
2 files changed
+26 -10

No files matched your search

+3
View File
@@ -6,11 +6,14 @@ let
in
{
imports = [ ./fwbook.hardware-configuration.nix ];
# Skyg
skyg.user.enabled = true;
skyg.nixos.desktop = {
enabled = true;
kde.enabled = true;
};
skyg.nixos.common.hardware.sound.enable = true;
# Firmware updater
services.fwupd.enable = true;
services.fwupd.package = (import
(builtins.fetchTarball {
+23 -10
View File
@@ -1,12 +1,25 @@
{ ... }: {
# 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;
{ lib
, config
, ...
}:
let
cfg = config.skyg.nixos.common.hardware.sound;
in
{
options.skyg.nixos.common.hardware.sound = with lib; {
enable = mkEnableOption "sound";
};
config = lib.mkIf cfg.enable {
# 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;
};
};
}