mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
chore: update background
This commit is contained in:
parent
8a640e39cb
commit
67c81de5d1
3 changed files with 594 additions and 6 deletions
|
|
@ -5,19 +5,21 @@
|
|||
}: let
|
||||
background = pkgs.stdenvNoCC.mkDerivation {
|
||||
pname = "desktop-background";
|
||||
version = "0.1";
|
||||
version = "0.2";
|
||||
|
||||
src = lib.fileset.toSource {
|
||||
root = ./.;
|
||||
fileset = lib.fileset.unions [
|
||||
./background.svg
|
||||
./backgrounds/geometry.svg
|
||||
./backgrounds/unknown.svg
|
||||
];
|
||||
};
|
||||
|
||||
nativeBuildInputs = [pkgs.inkscape];
|
||||
|
||||
buildPhase = ''
|
||||
inkscape -w 3840 -h 2160 background.svg -o background.png
|
||||
inkscape -w 3840 -h 2160 backgrounds/geometry.svg -o geometry.png
|
||||
inkscape -w 3840 -h 2160 backgrounds/unknown.svg -o unknown.png
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
|
|
@ -25,14 +27,17 @@
|
|||
cp *.svg *.png $out/share/backgrounds
|
||||
'';
|
||||
};
|
||||
png = background + "/share/backgrounds/background.png";
|
||||
pngs = [
|
||||
(background + "/share/backgrounds/unknown.png")
|
||||
(background + "/share/backgrounds/geometry.png")
|
||||
];
|
||||
in {
|
||||
fireproof.home-manager = {
|
||||
services.hyprpaper = {
|
||||
enable = true;
|
||||
settings = {
|
||||
preload = [png];
|
||||
wallpaper = [",${png}"];
|
||||
preload = pngs;
|
||||
wallpaper = [",${builtins.head pngs}"];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue