From e772e68c1643b87e72fca09e871ce4ef87b12ee3 Mon Sep 17 00:00:00 2001 From: Romain Paquet Date: Tue, 16 Sep 2025 20:38:42 +0200 Subject: [PATCH] add krakow weather to glance --- machines/genepi/glance-config.nix | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/machines/genepi/glance-config.nix b/machines/genepi/glance-config.nix index 20fc1fe..f333fd7 100644 --- a/machines/genepi/glance-config.nix +++ b/machines/genepi/glance-config.nix @@ -125,20 +125,20 @@ } { size = "small"; - widgets = [ - { + widgets = + let + locations = [ + "Krakow, Poland" + "Grenoble, France" + "Saint-Michel-de-Maurienne, France" + ]; + in + builtins.map (location: { type = "weather"; - location = "Grenoble, France"; + inherit location; units = "metric"; hour-format = "24h"; - } - { - type = "weather"; - location = "Saint-Michel-de-Maurienne, France"; - units = "metric"; - hour-format = "24h"; - } - ]; + }) locations; } ]; }