From 68305e5b4ac33d0fd5752ff535f893aa3f70f610 Mon Sep 17 00:00:00 2001 From: "info@data-pro.nu" Date: Tue, 17 Mar 2026 18:43:30 +0000 Subject: [PATCH] new wallpaperthingie --- .../decorations/rotating_wallpaper.nix | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/Droidnix/generated/hyprland/decorations/rotating_wallpaper.nix b/Droidnix/generated/hyprland/decorations/rotating_wallpaper.nix index 7245ef514..fe6d82be8 100644 --- a/Droidnix/generated/hyprland/decorations/rotating_wallpaper.nix +++ b/Droidnix/generated/hyprland/decorations/rotating_wallpaper.nix @@ -7,20 +7,14 @@ }: let - # Source wallpaperstuff in the flake wallpaperSource = "${flakeRoot}/assets/hyprland/wallpaperstuff"; - - # Target in the user home wallpaperTarget = "$HOME/.config/wpaperd"; - - # Config file inside the flake - wallpaperConf = "${flakeRoot}/assets/hyprland/wallpaperstuff/wallpaper.conf"; in { - # Install the wpaperd package system-wide + # Install wpaperd system-wide environment.systemPackages = with pkgs; [ wpaperd ]; - # Activation script: copy wallpapers & config to user home + # Activation script: copy wallpapers & config to ~/.config/wpaperd system.activationScripts.copyWpaperdConfig = { text = '' echo "=== Copying wpaperd config to $HOME/.config/wpaperd ===" @@ -31,24 +25,19 @@ in deps = [ ]; }; - # Enable linger so user services can run outside login - systemd.enableUserServices = true; - systemd.user.enableLinger = true; - - # User systemd service + # User systemd service (runs on login) systemd.user.services.wpaperd = { description = "wpaperd wallpaper daemon"; after = [ "default.target" ]; serviceConfig = { Type = "simple"; - # Use bash -c to expand HOME properly ExecStart = "bash -c '${pkgs.wpaperd}/bin/wpaperd --config ${wallpaperTarget}/wallpaper.conf'"; Restart = "on-failure"; RestartSec = 1; }; - # Enable the service by default wantedBy = [ "default.target" ]; + enable = true; }; }