refactor: prepare new modules structure

This commit is contained in:
Nickolaj Jepsen 2025-05-20 20:05:23 +02:00
parent d25e24c15b
commit bf82970b9e
65 changed files with 94 additions and 94 deletions

View file

@ -0,0 +1,44 @@
{
pkgs,
lib,
...
}: let
background = pkgs.stdenvNoCC.mkDerivation {
pname = "desktop-background";
version = "0.2";
src = lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.unions [
./backgrounds/geometry.svg
./backgrounds/unknown.svg
];
};
nativeBuildInputs = [pkgs.inkscape];
buildPhase = ''
inkscape -w 3840 -h 2160 backgrounds/geometry.svg -o geometry.png
inkscape -w 3840 -h 2160 backgrounds/unknown.svg -o unknown.png
'';
installPhase = ''
mkdir -p $out/share/backgrounds
cp *.svg *.png $out/share/backgrounds
'';
};
pngs = [
(background + "/share/backgrounds/unknown.png")
(background + "/share/backgrounds/geometry.png")
];
in {
fireproof.home-manager = {
services.hyprpaper = {
enable = true;
settings = {
preload = pngs;
wallpaper = [",${builtins.head pngs}"];
};
};
};
}