fix(io): improve bluetooth/audio defaults
This commit is contained in:
parent
a14b0002bb
commit
6dc0cc7a6b
|
@ -3,11 +3,12 @@
|
||||||
, config
|
, config
|
||||||
, ... }: with lib; let
|
, ... }: with lib; let
|
||||||
cfg = config.global.io;
|
cfg = config.global.io;
|
||||||
|
gui = with config.global.gui; enable && session;
|
||||||
in {
|
in {
|
||||||
options.global.io = {
|
options.global.io = {
|
||||||
betaflight = mkEnableOption "betaflight udev rules" // { default = true; };
|
betaflight = mkEnableOption "betaflight udev rules" // { default = true; };
|
||||||
bluetooth = mkEnableOption "bluetooth daemons and state persistence" // { default = true; };
|
bluetooth = mkEnableOption "bluetooth daemons and state persistence" // { default = gui; };
|
||||||
audio = mkEnableOption "pulseaudio server configuration" // { default = true; };
|
audio = mkEnableOption "pulseaudio server configuration" // { default = gui; };
|
||||||
coredump = mkEnableOption "save coredumps handled by systemd";
|
coredump = mkEnableOption "save coredumps handled by systemd";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue