hst/enablement: editor friendly enablement adaptor
Some checks failed
Test / Create distribution (push) Successful in 35s
Test / Sandbox (push) Successful in 2m10s
Test / Hakurei (push) Failing after 2m32s
Test / Sandbox (race detector) (push) Successful in 4m15s
Test / Hakurei (race detector) (push) Failing after 4m19s
Test / Hpkg (push) Failing after 17m28s
Test / Flake checks (push) Has been skipped

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>
This commit is contained in:
2025-08-15 04:57:37 +09:00
parent 9ed3ba85ea
commit 4c7c54d701
17 changed files with 231 additions and 39 deletions

View File

@@ -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.