gnome-weather: statically define location
this hopefully fixes sandboxing issue, where ~/.config/dconf (persisted) wasnt visible inside the sandbox
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# preferences are saved via dconf; see `dconf dump /`
|
||||
# cache dir is just for weather data (or maybe a http cache)
|
||||
{ pkgs, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
sane.programs.gnome-weather = {
|
||||
buildCost = 1;
|
||||
@@ -22,4 +22,15 @@
|
||||
".cache/libgweather"
|
||||
];
|
||||
};
|
||||
|
||||
sane.programs.dconf.config.site = lib.mkIf config.sane.programs.gnome-weather.enabled [
|
||||
(pkgs.writeTextFile {
|
||||
name = "sane-gnome-weather";
|
||||
destination = "/etc/dconf/db/site.d/10_gnome_weather";
|
||||
text = ''
|
||||
[org/gnome/Weather]
|
||||
locations=[<(uint32 2, <('Seattle', 'KBFI', true, [(0.82983133145337307, -2.134775231953554)], [(0.83088509144255718, -2.135097419733472)])>)>]
|
||||
'';
|
||||
})
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user