This commit is contained in:
Lilith 2024-06-08 23:20:39 +02:00
parent 5233f56434
commit 94db9bfcd6
Signed by: lilith
GPG key ID: 8712A0F317C37175
4 changed files with 29 additions and 6 deletions

View file

@ -1,5 +1,6 @@
{ system-config, lib, ...}: {
imports = [
./hyprpaper.nix
# ./hyprgrass.nix
# ./utils.nix
];

View file

@ -0,0 +1,20 @@
{ conf, ... }:
{
home.file.wallpaper = {
target = ".config/hypr/${conf.wallpaper}";
source = ../wallpapers/${conf.wallpaper};
};
home.file.hyprpaper = let
file = home.file.wallpaper.target;
in {
target = ".config/hypr/hyprpaper.conf";
text = ''
preload = ${file}
wallpaper = ,${file}
splash = false
'';
};
}