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