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 # Enable home manager
home-manager = { home-manager = {
extraSpecialArgs = { inherit inputs; }; extraSpecialArgs = {
inherit inputs;
assets = assets;
};
users = { users = {
"javi" = { "javi" = {
imports = [ imports = [

View File

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