refactor: programs: split gnome-maps into own file

This commit is contained in:
Colin 2024-02-25 09:06:32 +00:00
parent e0267b5669
commit 0745e9fc06
3 changed files with 18 additions and 14 deletions

View File

@ -465,14 +465,6 @@ in
"gnome.gnome-disk-utility".sandbox.whitelistDbus = [ "system" ];
"gnome.gnome-disk-utility".sandbox.whitelistWayland = true;
# TODO: verify location services
# "gnome.gnome-maps".sandbox.method = "bwrap";
# "gnome.gnome-maps".sandbox.wrapperType = "inplace";
# "gnome.gnome-maps".sandbox.whitelistDri = true;
# "gnome.gnome-maps".sandbox.whitelistDbus = [ "user" ]; # for GPS (geoclue, portals)
# "gnome.gnome-maps".sandbox.whitelistWayland = true;
# "gnome.gnome-maps".sandbox.net = "clearnet";
gnome-2048.sandbox.method = "bwrap";
gnome-2048.sandbox.wrapperType = "wrappedDerivation";
gnome-2048.sandbox.whitelistWayland = true;
@ -495,12 +487,6 @@ in
".local/share/tessdata" # 15M; dunno what all it is.
];
# TODO: gnome-maps: move to own file
"gnome.gnome-maps".persist.byStore.plaintext = [ ".cache/shumate" ];
"gnome.gnome-maps".persist.byStore.private = [
({ path = ".local/share/maps-places.json"; type = "file"; })
];
# hitori rules:
# - click to shade a tile
# 1. no number may appear unshaded more than once in the same row/column

View File

@ -37,6 +37,7 @@
./git.nix
./gnome-feeds.nix
./gnome-keyring
./gnome-maps.nix
./gnome-weather.nix
./go2tv.nix
./gpodder.nix

View File

@ -0,0 +1,17 @@
{ ... }:
{
sane.programs."gnome.gnome-maps" = {
# TODO: verify location services
# sandbox.method = "bwrap";
# sandbox.wrapperType = "inplace";
# sandbox.whitelistDri = true; # for perf
# sandbox.whitelistDbus = [ "user" ]; # for GPS (geoclue, portals)
# sandbox.whitelistWayland = true;
# sandbox.net = "clearnet";
persist.byStore.plaintext = [ ".cache/shumate" ];
persist.byStore.private = [
({ path = ".local/share/maps-places.json"; type = "file"; })
];
};
}