27 lines
609 B
Nix
27 lines
609 B
Nix
{ pkgs }:
|
|
|
|
let
|
|
imgLink = "https://w.wallhaven.cc/full/yj/wallhaven-yjq257.png";
|
|
|
|
image = pkgs.fetchurl {
|
|
url = imgLink;
|
|
sha256 = "sha256-lrQv8VAks86zMzRaF9VEZotp78O9M7/dV8jZNTRb6SY=";
|
|
};
|
|
in
|
|
pkgs.stdenv.mkDerivation {
|
|
name = "sddm-theme";
|
|
src = pkgs.fetchFromGitHub {
|
|
owner = "MarianArlt";
|
|
repo = "sddm-sugar-dark";
|
|
rev = "ceb2c455663429be03ba62d9f898c571650ef7fe";
|
|
sha256 = "0153z1kylbhc9d12nxy9vpn0spxgrhgy36wy37pk6ysq7akaqlvy";
|
|
};
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
cp -R ./* $out/
|
|
cd $out/
|
|
rm Background.jpg
|
|
cp -r ${image} $out/Background.jpg
|
|
'';
|
|
}
|