hst/enablement: editor friendly enablement adaptor
All checks were successful
Test / Create distribution (push) Successful in 35s
Test / Hakurei (push) Successful in 45s
Test / Hpkg (push) Successful in 3m17s
Test / Sandbox (push) Successful in 43s
Test / Hakurei (race detector) (push) Successful in 45s
Test / Sandbox (race detector) (push) Successful in 43s
Test / Flake checks (push) Successful in 1m27s

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 4ffeec3004
20 changed files with 243 additions and 46 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.