This commit is contained in:
Lilith 2024-06-09 01:04:48 +02:00
parent 94db9bfcd6
commit 9ba3b9d1a7
Signed by: lilith
GPG key ID: 8712A0F317C37175
5 changed files with 26 additions and 21 deletions

View file

@ -1,20 +1,22 @@
{ conf, ... }:
{
home.file.wallpaper = {
target = ".config/hypr/${conf.wallpaper}";
source = ../wallpapers/${conf.wallpaper};
home.file.".config/hypr/wallpaper.png" = {
source = ../../wallpapers/default.png;
};
home.file.hyprpaper = let
file = home.file.wallpaper.target;
in {
target = ".config/hypr/hyprpaper.conf";
text = ''
preload = ${file}
services.hyprpaper = let
default = "/home/${conf.user}/.config/hypr/default.png";
in {
enable = true;
wallpaper = ,${file}
settings = {
splash = false;
splash = false
'';
preload = [ default ];
wallpaper = [
",${default}"
];
};
};
}