nix-config/home/gburd/wallpapers/default.nix

10 lines
273 B
Nix
Raw Normal View History

builtins.listToAttrs (map
(wallpaper: {
inherit (wallpaper) name;
value = builtins.fetchurl {
inherit (wallpaper) sha256;
url = "https://i.imgur.com/${wallpaper.id}.${wallpaper.ext}";
};
})
(builtins.fromJSON (builtins.readFile ./list.json)))