audio toogle

This commit is contained in:
smayzy 2025-07-06 19:00:37 +02:00
parent f398d06399
commit d444b47af8
2 changed files with 20 additions and 7 deletions

View File

@ -19,6 +19,8 @@
smayzy.nvf.enable = true;
smayzy.audio.enable = true;
users.users.smayzy = {
isNormalUser = true;
description = "smayzy";

View File

@ -1,5 +1,15 @@
{ config, lib, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.audio.enable = mkOption {
type = types.bool;
default = false;
description = "audio settings";
};
config = mkIf config.smayzy.audio.enable {
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
@ -8,4 +18,5 @@
alsa.support32Bit = true;
pulse.enable = true;
};
};
}