diff --git a/home/applications/swaylock/default.nix b/home/applications/swaylock/default.nix index 0b10977..e478d01 100644 --- a/home/applications/swaylock/default.nix +++ b/home/applications/swaylock/default.nix @@ -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"; }; }; diff --git a/pkgs/background.nix b/pkgs/background.nix deleted file mode 100644 index 7000b8c..0000000 --- a/pkgs/background.nix +++ /dev/null @@ -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 -'' diff --git a/pkgs/default.nix b/pkgs/default.nix index d5665af..a4722d4 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -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;