audio toogle
This commit is contained in:
parent
f398d06399
commit
d444b47af8
@ -19,6 +19,8 @@
|
||||
|
||||
smayzy.nvf.enable = true;
|
||||
|
||||
smayzy.audio.enable = true;
|
||||
|
||||
users.users.smayzy = {
|
||||
isNormalUser = true;
|
||||
description = "smayzy";
|
||||
|
||||
@ -1,11 +1,22 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
inherit (lib) mkIf mkOption types;
|
||||
in
|
||||
{
|
||||
services.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
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 = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user