summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqaristote <quentin.aristote@ens.fr>2023-03-14 13:17:10 +0100
committerqaristote <quentin.aristote@ens.fr>2023-03-14 13:17:10 +0100
commit4f20f2983a97a427fd1bd7ca649cde37a3e935e2 (patch)
tree7b4052bfd6c9b35825d1b3bdde071c02667613c7
parent946323f0cad17e511ab0cf5052506e4f565edfe0 (diff)
pkgs: static: wallpapers: make overridable
-rw-r--r--pkgs/static/wallpapers/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/static/wallpapers/default.nix b/pkgs/static/wallpapers/default.nix
index 4abeb38..f0b8d46 100644
--- a/pkgs/static/wallpapers/default.nix
+++ b/pkgs/static/wallpapers/default.nix
@@ -1,7 +1,7 @@
{ stdenv, fetchurl, imagemagick, lib }:
let
- fetchWallpaper =
+ fetchWallpaper = lib.makeOverridable (
{ name, url, sha256, resolution ? "1920x1080", offset ? "0x0" }:
stdenv.mkDerivation {
inherit name;
@@ -15,7 +15,7 @@ let
-crop "${resolution}+${offset}" \
"$out"
'';
- };
+ });
sources = lib.importJSON ./sources.json;
in {
fetcher = fetchWallpaper;