From af514968de30b5565d67d2ffec2fbe3ef9289bb7 Mon Sep 17 00:00:00 2001 From: "info@data-pro.nu" Date: Tue, 17 Mar 2026 18:58:11 +0000 Subject: [PATCH] new wallpaperthingie --- .../decorations/rotating_wallpaper.nix | 40 ++++--------------- 1 file changed, 8 insertions(+), 32 deletions(-) diff --git a/Droidnix/generated/hyprland/decorations/rotating_wallpaper.nix b/Droidnix/generated/hyprland/decorations/rotating_wallpaper.nix index d8553be98..7418fe1a0 100644 --- a/Droidnix/generated/hyprland/decorations/rotating_wallpaper.nix +++ b/Droidnix/generated/hyprland/decorations/rotating_wallpaper.nix @@ -2,45 +2,21 @@ config, pkgs, lib, + user, + flakeRoot, ... }: let - wallpaperSource = "${config.home.homeDirectory}/.config/wpaperd-source"; # or flakeRoot path - wallpaperTarget = "${config.home.homeDirectory}/.config/wpaperd"; + wallpaperSource = "${flakeRoot}/assets/hyprland/wallpaperstuff"; in { - home.packages = [ pkgs.wpaperd ]; + home-manager.users.${user.username} = { + programs.wpaperd.enable = true; - home.file.".config/wpaperd/wallpaper.conf".source = "${wallpaperSource}/wallpaper.conf"; + xdg.configFile."wpaperd/wallpaper.conf".source = "${wallpaperSource}/wallpaper.conf"; - home.activation.copyWpaperd = lib.homeManager.activationScript { - name = "copy-wpaperd"; - text = '' - echo "=== Copying wpaperd source to ${wallpaperTarget} ===" - mkdir -p "${wallpaperTarget}" - cp -rT "${wallpaperSource}" "${wallpaperTarget}" - echo "Done." - ''; + # Copy the rest of the folder (if needed) + home.file.".config/wpaperd/".source = wallpaperSource; }; - - home.sessionVariables = { - WPAPERD_CONFIG = "${wallpaperTarget}/wallpaper.conf"; - }; - - # User-level service - home.file.".config/systemd/user/wpaperd.service".text = '' - [Unit] - Description=wpaperd wallpaper daemon - After=default.target - - [Service] - Type=simple - ExecStart=${pkgs.wpaperd}/bin/wpaperd --config ${wallpaperTarget}/wallpaper.conf - Restart=on-failure - RestartSec=1 - - [Install] - WantedBy=default.target - ''; }