From 32eafdb4d887a76f16e7878329699104da64aca0 Mon Sep 17 00:00:00 2001 From: "info@data-pro.nu" Date: Tue, 17 Mar 2026 18:01:33 +0000 Subject: [PATCH] new wallpaperthingie --- .../decorations/rotating_wallpaper.nix | 50 +++++++++---------- 1 file changed, 24 insertions(+), 26 deletions(-) diff --git a/Droidnix/generated/hyprland/decorations/rotating_wallpaper.nix b/Droidnix/generated/hyprland/decorations/rotating_wallpaper.nix index 1eefe513f..dc1712cd0 100644 --- a/Droidnix/generated/hyprland/decorations/rotating_wallpaper.nix +++ b/Droidnix/generated/hyprland/decorations/rotating_wallpaper.nix @@ -1,4 +1,10 @@ -{ lib, config, pkgs, flakeRoot, ... }: +{ + lib, + config, + pkgs, + flakeRoot, + ... +}: let # Define source and destination paths @@ -6,7 +12,6 @@ let destination_path = "${config.home.homeDirectory}/Droidnix/wallpaperstuff"; script_path = "${flakeRoot}/assets/hyprland/scripts/copy_wallpaperstuff.sh"; wallpaper_conf = "${flakeRoot}/assets/hyprland/wallpaperstuff/wallpaper.conf"; - in { options = { @@ -14,31 +19,24 @@ in }; config = lib.mkIf config.wallpaper.enable { - -/* # Run the script on activation - home-manager.users.${config.home.username}.home.activation.copy-wallpapers = lib.mkMerge [ - { - script = '' - echo "=== Activation Script Running ===" - echo "Script path: ${script_path}" - if [ -f "${script_path}" ]; then - echo "Script exists, executing..." - "${script_path}" - else - echo "ERROR: Script does not exist at ${script_path}" - exit 1 - fi - ''; - } - ]; -*/ - # Install wpaperd - home-manager.users.${config.home.username}.home.packages = [ pkgs.wpaperd ]; + home-manager.users.${config.home.username}.home.activation.copy-wallpapers.script = '' + echo "=== Activation Script Running ===" + echo "Script path: ${script_path}" + if [ -f "${script_path}" ]; then + echo "Script exists, executing..." + "${script_path}" + else + echo "ERROR: Script does not exist at ${script_path}" + exit 1 + fi + ''; - # Configure wpaperd - home-manager.users.${config.home.homeDirectory}/.config/wpaperd/config.toml = { - text = builtins.readFile "${wallpaper_conf}"; - }; + # Install wpaperd + home-manager.users.${config.home.username}.home.packages = with pkgs; [ wpaperd ]; + + # Configure wpaperd using home.file + home-manager.users.${config.home.username}.home.file.".config/wpaperd/config.toml".text = + builtins.readFile "${wallpaper_conf}"; }; }