I successfully declare two time zones for Gnome world clocks using home-manager. After logging in, the settings get applied and are displayed correctly when I click on the date and time widget. However after an indeterminate period of time (minutes not hours) if I click on the date and time widget again, the time zones are no longer displayed and instead an unset area is displayed with the text “Add world clock”. Does anyone have any idea what could be causing this?
Here is the relevant code snippet:
"org/gnome/shell/world-clocks" = {
locations = [
(mkVariant (mkTuple [
(mkUint32 2)
(mkVariant (mkTuple [
"Toronto"
"CYTZ"
true
[ (mkTuple [ (0.76154532446909495) (-1.3857914260834978) ]) ]
[ (mkTuple [ (0.76212711252195475) (-1.3860823201099277) ]) ]
]))
]))
(mkVariant (mkTuple [
(mkUint32 2)
(mkVariant (mkTuple [
"London"
"EGWU"
true
[ (mkTuple [ (0.89971722940307675) (-0.007272211034407213) ]) ]
[ (mkTuple [ (0.89884456477707964) (-0.0020362232784242244) ]) ]
]))
]))
];
};