new wallpaperthingie

This commit is contained in:
2026-03-17 20:56:56 +00:00
parent 2f9e3739f2
commit 9263b36f36
2 changed files with 27 additions and 13 deletions
@@ -1,8 +1,14 @@
{ config, pkgs, lib, flakeRoot, ... }:
{
config,
pkgs,
lib,
flakeRoot,
...
}:
let
wallpaperSource = "${flakeRoot}/assets/hyprland/wallpaperstuff";
wallpaperTarget = "${config.home.homeDirectory}/.config/wpaperd";
wallpaperTarget = "$HOME/.config/wpaperd";
in
{
# Install wpaperd system-wide
@@ -11,19 +17,19 @@ in
# Activation script: copy wallpapers & config to ~/.config/wpaperd
system.activationScripts.copyWpaperdConfig = {
text = ''
echo "=== Copying wpaperd config to ${wallpaperTarget} ==="
echo "=== Copying wpaperd config to $HOME/.config/wpaperd ==="
mkdir -p "${wallpaperTarget}"
cp -rT "${wallpaperSource}" "${wallpaperTarget}"
chmod -R 755 "${wallpaperTarget}"
rsync -av --no-group --no-owner "${wallpaperSource}/" "$HOME/Droidnix/"
echo "Config files copied from $SOURCE_DIR to $HOME/Droidnix/."
echo "Done."
'';
deps = [];
deps = [ ];
};
# User systemd service (runs on login)
systemd.user.services.wpaperd = {
description = "wpaperd wallpaper daemon";
wantedBy = [ "default.target" ];
after = [ "default.target" ];
serviceConfig = {
@@ -33,6 +39,7 @@ in
RestartSec = 1;
};
wantedBy = [ "default.target" ];
enable = true;
};
}