Even my wallpaper is declarative

This commit is contained in:
Javier Feliz 2025-08-13 20:57:33 -04:00
parent b1ac37d40e
commit bb8e08f6c6
3 changed files with 9 additions and 7 deletions

BIN
assets/wallpaper.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 MiB

View File

@ -175,7 +175,10 @@
# Enable home manager
home-manager = {
extraSpecialArgs = { inherit inputs; };
extraSpecialArgs = {
inherit inputs;
assets = assets;
};
users = {
"javi" = {
imports = [

View File

@ -2,28 +2,27 @@
config,
pkgs,
inputs,
assets,
...
}:
let
basePath = "/home/javi/Documents/wallpapers";
wallpaper = "Fantasy-Mountain.png";
in
{
home.packages = [
pkgs.hyprpaper
];
# Home Manager
xdg.configFile."wallpaper.png".source = "${assets}/wallpaper.png";
services.hyprpaper = {
enable = true;
settings = {
ipc = "on";
splash = false;
preload = [
"${basePath}/${wallpaper}"
"/home/javi/.config/wallpaper.png"
];
wallpaper = [
", ${basePath}/${wallpaper}"
", /home/javi/.config/wallpaper.png"
];
};
};