new wallpaperthingie

This commit is contained in:
2026-03-17 21:12:49 +00:00
parent 9263b36f36
commit a09ea6f1d1
2 changed files with 12 additions and 26 deletions
+6 -13
View File
@@ -796,19 +796,6 @@ in
# Install wpaperd system-wide
environment.systemPackages = with pkgs; [ wpaperd ];
# Activation script: copy wallpapers & config to ~/.config/wpaperd
system.activationScripts.copyWpaperdConfig = {
text = ''
echo "=== Copying wpaperd config to $HOME/.config/wpaperd ==="
mkdir -p "${wallpaperTarget}"
cp -rT "${wallpaperSource}" "${wallpaperTarget}"
rsync -av --no-group --no-owner "${wallpaperSource}/" "$HOME/Droidnix/"
echo "Config files copied from $SOURCE_DIR to $HOME/Droidnix/."
echo "Done."
'';
deps = [ ];
};
# User systemd service (runs on login)
systemd.user.services.wpaperd = {
description = "wpaperd wallpaper daemon";
@@ -816,6 +803,12 @@ in
serviceConfig = {
Type = "simple";
# Copy config first, then run wpaperd
ExecStartPre = ''
mkdir -p "${wallpaperTarget}"
cp -rT "${wallpaperSource}" "${wallpaperTarget}"
rsync -av --no-group --no-owner "${wallpaperSource}/" "$HOME/Droidnix/"
'';
ExecStart = "${pkgs.wpaperd}/bin/wpaperd --config ${wallpaperTarget}/wallpaper.toml";
Restart = "on-failure";
RestartSec = 1;