programs: waybar: sandbox in a way that works well for moby too
This commit is contained in:
@@ -50,14 +50,26 @@ in
|
||||
sandbox.method = "bwrap";
|
||||
sandbox.wrapperType = "wrappedDerivation";
|
||||
sandbox.net = "all"; #< to show net connection status and BW
|
||||
sandbox.whitelistDbus = [ "user" ];
|
||||
sandbox.whitelistDbus = [
|
||||
"user" #< for playerctl/media
|
||||
"system" #< for modem (on phone)
|
||||
];
|
||||
sandbox.whitelistWayland = true;
|
||||
sandbox.extraRuntimePaths = [ "/" ]; #< needs to talk to sway IPC. TODO: give the sway IPC a predictable name.
|
||||
sandbox.extraRuntimePaths = [
|
||||
#< needs to talk to sway IPC. TODO: give the sway IPC a predictable name.
|
||||
"/"
|
||||
# "sxmo_status" #< only necessary if relying on sxmo's statusbar periodicals service
|
||||
];
|
||||
sandbox.extraPaths = [
|
||||
# for wifi status on sxmo/phone
|
||||
"/dev/rfkill"
|
||||
# for the battery indicator
|
||||
"/sys/class/power_supply"
|
||||
"/sys/devices"
|
||||
];
|
||||
sandbox.extraHomePaths = [
|
||||
".config/sxmo/hooks"
|
||||
];
|
||||
|
||||
fs.".config/waybar/config".symlink.target =
|
||||
(pkgs.formats.json {}).generate "waybar-config.json" [
|
||||
|
Reference in New Issue
Block a user