geoclue: dont place unsandboxed files on PATH
This commit is contained in:
@@ -33,12 +33,25 @@ in
|
|||||||
suggestedPrograms = [
|
suggestedPrograms = [
|
||||||
"avahi" #< to discover LAN gps devices
|
"avahi" #< to discover LAN gps devices
|
||||||
"geoclue-demo-agent"
|
"geoclue-demo-agent"
|
||||||
"gps-share"
|
# "gps-share"
|
||||||
"iio-sensor-proxy"
|
"iio-sensor-proxy"
|
||||||
"ols" #< WiFi SSID -> lat/long lookups
|
"ols" #< WiFi SSID -> lat/long lookups
|
||||||
"satellite" #< graphical view into GPS fix data
|
"satellite" #< graphical view into GPS fix data
|
||||||
"where-am-i" #< handy debugging/testing tool
|
"where-am-i" #< handy debugging/testing tool
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# XXX(2024/07/05): no way to plumb my sandboxed geoclue into `services.geoclue2`.
|
||||||
|
# then, the package doesn't get used directly anywhere. but other programs reference `packageUnwrapped`,
|
||||||
|
# so keep that part still.
|
||||||
|
sandbox.enable = false;
|
||||||
|
package = lib.mkForce null;
|
||||||
|
|
||||||
|
# experimental sandboxing (2024/07/05)
|
||||||
|
# sandbox.method = "bwrap";
|
||||||
|
# sandbox.whitelistDbus = [
|
||||||
|
# "system"
|
||||||
|
# ];
|
||||||
|
# sandbox.net = "all";
|
||||||
};
|
};
|
||||||
|
|
||||||
# sane.programs.geoclue2.enableFor.system = lib.mkIf (builtins.any (en: en) (builtins.attrValues cfg.enableFor.user)) true;
|
# sane.programs.geoclue2.enableFor.system = lib.mkIf (builtins.any (en: en) (builtins.attrValues cfg.enableFor.user)) true;
|
||||||
|
@@ -283,6 +283,9 @@ in
|
|||||||
# dd if=${pkgs.tow-boot-pinephone}/Tow-Boot.noenv.bin of=$out bs=1024 seek=8 conv=notrunc
|
# dd if=${pkgs.tow-boot-pinephone}/Tow-Boot.noenv.bin of=$out bs=1024 seek=8 conv=notrunc
|
||||||
# '';
|
# '';
|
||||||
|
|
||||||
|
sane.programs.geoclue2.suggestedPrograms = [
|
||||||
|
"gps-share"
|
||||||
|
];
|
||||||
sane.programs.nwg-panel.config.torch = "white:flash";
|
sane.programs.nwg-panel.config.torch = "white:flash";
|
||||||
sane.programs.gps-share.config = {
|
sane.programs.gps-share.config = {
|
||||||
device = "/dev/ttyUSB1";
|
device = "/dev/ttyUSB1";
|
||||||
|
Reference in New Issue
Block a user