summaryrefslogtreecommitdiff
path: root/pkgs/static/wallpapers/default.nix
diff options
context:
space:
mode:
authoraristote <quentin.aristote@irif.fr>2025-07-29 15:25:11 +0200
committeraristote <quentin.aristote@irif.fr>2025-07-29 15:25:11 +0200
commitfc019d789523ce5f89436b8dbc458cf3b79abf43 (patch)
treeec56fd1b1ed9fc75096c0b09db48a152975e4d53 /pkgs/static/wallpapers/default.nix
parenta3d19bc509d9f39fb41256cd55d2bd7706de202f (diff)
reformat everything with nixfmt
Diffstat (limited to 'pkgs/static/wallpapers/default.nix')
-rw-r--r--pkgs/static/wallpapers/default.nix39
1 files changed, 20 insertions, 19 deletions
diff --git a/pkgs/static/wallpapers/default.nix b/pkgs/static/wallpapers/default.nix
index a0efda3..7f228b9 100644
--- a/pkgs/static/wallpapers/default.nix
+++ b/pkgs/static/wallpapers/default.nix
@@ -3,7 +3,8 @@
fetchurl,
imagemagick,
lib,
-}: let
+}:
+let
fetchWallpaper = lib.makeOverridable (
{
name,
@@ -13,24 +14,24 @@
ratio ? "16:9",
gravity ? "center",
}:
- stdenv.mkDerivation {
- inherit name;
- src = fetchurl {
- inherit url sha256;
- };
- buildInputs = [imagemagick];
- phases = ["unpackPhase"];
- unpackPhase = ''
- convert "$src" -gravity '${gravity}' \
- -extent '${ratio}' \
- -resize '${resolution}!' \
- "$out"
- '';
- }
+ stdenv.mkDerivation {
+ inherit name;
+ src = fetchurl {
+ inherit url sha256;
+ };
+ buildInputs = [ imagemagick ];
+ phases = [ "unpackPhase" ];
+ unpackPhase = ''
+ convert "$src" -gravity '${gravity}' \
+ -extent '${ratio}' \
+ -resize '${resolution}!' \
+ "$out"
+ '';
+ }
);
sources = lib.importJSON ./sources.json;
in
- {
- fetcher = fetchWallpaper;
- }
- // builtins.mapAttrs (_: fetchWallpaper) sources
+{
+ fetcher = fetchWallpaper;
+}
+// builtins.mapAttrs (_: fetchWallpaper) sources