nixos: unify wallpapers via syncthing

Start hyprpaper via a user service and set wallpaper via IPC on session start.\nPoint xmonad random-background at the same Syncthing wallpaper directory (X11 only).
This commit is contained in:
2026-02-05 18:37:37 -08:00
committed by Kat Huang
parent 9f3f5c5a9d
commit 789b1d96b5
2 changed files with 117 additions and 1 deletions

View File

@@ -42,8 +42,10 @@ makeEnable config "myModules.xmonad" true {
enable = true;
display = "fill";
interval = "1h";
imageDirectory = "/var/lib/syncthing/sync/Wallpaper/";
imageDirectory = "/var/lib/syncthing/sync/Wallpaper";
};
# This service uses feh (X11), so don't run it in Wayland sessions.
systemd.user.services.random-background.Unit.ConditionEnvironment = "XDG_SESSION_TYPE=x11";
services.xsettingsd.enable = true;