aboutsummaryrefslogtreecommitdiffhomepage
path: root/options.nix
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-15 04:57:37 +0900
committerOphestra <cat@gensokyo.uk>2025-08-15 05:16:51 +0900
commit4ffeec3004607b76f73e504da220a1490c598348 (patch)
tree68cca16c22814b13974db0f19c151f8eb31e2dae /options.nix
parent9ed3ba85eaba4bc4bd12b290dc4daf00ffe159dc (diff)
hst/enablement: editor friendly enablement adaptor
Having the bit field value here (in decimal, no less) is unfriendly to text editors. Use a bunch of booleans here to improve ease of use. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'options.nix')
-rw-r--r--options.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/options.nix b/options.nix
index bd45b7b5..a51609c9 100644
--- a/options.nix
+++ b/options.nix
@@ -209,9 +209,9 @@ in
'';
};
- capability = {
+ enablements = {
wayland = mkOption {
- type = bool;
+ type = nullOr bool;
default = true;
description = ''
Whether to share the Wayland socket.
@@ -219,7 +219,7 @@ in
};
x11 = mkOption {
- type = bool;
+ type = nullOr bool;
default = false;
description = ''
Whether to share the X11 socket and allow connection.
@@ -227,7 +227,7 @@ in
};
dbus = mkOption {
- type = bool;
+ type = nullOr bool;
default = true;
description = ''
Whether to proxy D-Bus.
@@ -235,7 +235,7 @@ in
};
pulse = mkOption {
- type = bool;
+ type = nullOr bool;
default = true;
description = ''
Whether to share the PulseAudio socket and cookie.