dust: change wallpaper

This commit is contained in:
Guanran Wang 2024-08-15 22:12:14 +08:00
parent 10051bd92e
commit ae6ab3ca6e
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF
3 changed files with 2 additions and 26 deletions

View file

@ -9,7 +9,7 @@
daemonize = true;
show-failed-attempts = true;
show-keyboard-layout = true;
image = toString inputs.self.legacyPackages.${pkgs.stdenv.hostPlatform.system}.background.dark;
image = toString inputs.self.legacyPackages.${pkgs.stdenv.hostPlatform.system}.background;
scaling = "fill";
};
};

View file

@ -1,24 +0,0 @@
{
fetchurl,
imagemagick,
runCommandLocal,
}:
runCommandLocal "49983419_p0.jpg" {
nativeBuildInputs = [imagemagick];
# https://www.pixiv.net/en/artworks/49983419
image = fetchurl {
url = "https://i.pximg.net/img-original/img/2015/04/23/12/43/35/49983419_p0.jpg";
hash = "sha256-JZ5VmsjVjZfHXpx3JxzAyYzZppZmgH38AiAA+B0TDiw=";
curlOptsList = ["-e" "https://www.pixiv.net/"];
};
outputs = ["out" "dark"];
} ''
magick $image -crop 3500x1600+0+100 $out
magick $image \
-crop 3500x1600+0+100 \
-blur 8x8 \
-brightness-contrast -10,0 \
$dark
''

View file

@ -6,7 +6,7 @@ in {
# https://github.com/NixOS/nixpkgs/pull/308720
pixivfe = callPackage ./pixivfe.nix {};
background = callPackage ./background.nix {};
background = pkgs.nixos-artwork.wallpapers.nineish-dark-gray.src;
scripts = lib.makeScope pkgs.newScope (self: let
inherit (self) callPackage;