new wallpaperthingie

This commit is contained in:
2026-03-17 18:37:32 +00:00
parent 1f42d99ac5
commit 8ca4991fd7
@@ -1,4 +1,3 @@
# file: configuration.nix snippet
{
config,
pkgs,
@@ -22,6 +21,7 @@ in
systemd.user.services.wpaperd = {
description = "wpaperd wallpaper daemon";
after = [ "default.target" ];
enable = true; # <-- Must be set for user services
serviceConfig = {
Type = "simple";
@@ -30,18 +30,17 @@ in
RestartSec = 1;
};
install = {
WantedBy = [ "default.target" ];
};
# Optional: make it start on login (default.target)
wantedBy = [ "default.target" ];
};
# Optional: ensure the directory exists
# Optional: ensure the directory exists at activation
system.activationScripts.copyWallpaperConf = {
text = ''
echo "=== Ensuring wallpaper config exists ==="
mkdir -p "${wallpaperDir}/pictures"
if [ ! -f "${wallpaperConf}" ]; then
touch "${wallpaperConf}"
touch "${wallpaperConf}"
fi
echo "Done."
'';