From 4171c71c879d85668dfd38f568063816503df458 Mon Sep 17 00:00:00 2001 From: "info@data-pro.nu" Date: Tue, 17 Mar 2026 21:25:50 +0000 Subject: [PATCH] new wallpaperthingie --- .../decorations/rotating_wallpaper.nix | 35 ++++++------------- 1 file changed, 11 insertions(+), 24 deletions(-) diff --git a/Droidnix/generated/hyprland/decorations/rotating_wallpaper.nix b/Droidnix/generated/hyprland/decorations/rotating_wallpaper.nix index dfb1ed8ad..8b8541428 100644 --- a/Droidnix/generated/hyprland/decorations/rotating_wallpaper.nix +++ b/Droidnix/generated/hyprland/decorations/rotating_wallpaper.nix @@ -1,40 +1,27 @@ -{ - config, - pkgs, - lib, - flakeRoot, - ... -}: +{ pkgs, home, ... }: let - user = "henrov"; # your username - wallpaperSource = "${flakeRoot}/assets/hyprland/wallpaperstuff"; - wallpaperTarget = "/home/${user}/.config/wpaperd"; + wallpaperSource = "${builtins.getFlake "path:${./assets/hyprland/wallpaperstuff}"}"; + wallpaperTarget = "$HOME/.config/wpaperd"; in { - environment.systemPackages = with pkgs; [ wpaperd ]; + home.packages = [ pkgs.wpaperd ]; - systemd.user.services.wpaperd = { + home.file.".config/wpaperd/wallpaper.toml".source = "${wallpaperSource}/wallpaper.toml"; + + home.file.".config/wpaperd/".source = wallpaperSource; + + home.sessionVariables.DROIDNIX_PATH = "$HOME/Droidnix"; + + home.systemd.user.services.wpaperd = { description = "wpaperd wallpaper daemon"; - - # Will run after graphical login after = [ "graphical.target" ]; serviceConfig = { Type = "simple"; - - # Copy config before starting - ExecStartPre = '' - mkdir -p "${wallpaperTarget}" - cp -rT "${wallpaperSource}" "${wallpaperTarget}" - rsync -av --no-group --no-owner "${wallpaperSource}/" "/home/${user}/Droidnix/" - ''; - ExecStart = "${pkgs.wpaperd}/bin/wpaperd --config ${wallpaperTarget}/wallpaper.toml"; Restart = "on-failure"; RestartSec = 1; - User = "${user}"; # Run as your user - WorkingDirectory = "/home/${user}"; }; wantedBy = [ "default.target" ];