From 0cc1db46f4551099d805d71f65529981702555cd Mon Sep 17 00:00:00 2001 From: "info@data-pro.nu" Date: Tue, 17 Mar 2026 17:49:37 +0000 Subject: [PATCH] new wallpaperthingie --- .../decorations/rotating_wallpaper.nix | 38 ++++++++++++------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/Droidnix/generated/hyprland/decorations/rotating_wallpaper.nix b/Droidnix/generated/hyprland/decorations/rotating_wallpaper.nix index c93ca2014..2d50fcb7b 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 @@ -8,17 +14,20 @@ let wallpaper_conf = "${flakeRoot}/assets/hyprland/wallpaperstuff/wallpaper.conf"; # Debug: Print paths to verify they're correct - _ = builtins.trace (lib.concatStringsSep "\n" [ - "=== Wallpaper Module Debug ===" - "Source path: ${source_path}" - "Destination path: ${destination_path}" - "Script path: ${script_path}" - "Wallpaper config: ${wallpaper_conf}" - "=== End of Debug ===" - ]); -in { + _ = builtins.trace ( + lib.concatStringsSep "\n" [ + "=== Wallpaper Module Debug ===" + "Source path: ${source_path}" + "Destination path: ${destination_path}" + "Script path: ${script_path}" + "Wallpaper config: ${wallpaper_conf}" + "=== End of Debug ===" + ] + ); +in +{ options = { - wallpaper.enable = lib.mkEnableOption "Wallpaper setup" default = true; + wallpaper.enable = lib.mkEnableOption "Wallpaper setup"; }; config = lib.mkIf config.wallpaper.enable { @@ -30,7 +39,7 @@ in { home-manager.users.${config.home.username}.home.file."${script_path}".executable = true; # Debug: Print script path - _ = builtins.trace "Script path: ${script_path}"; + traceprint1_ = builtins.trace "Script path: ${script_path}"; # Run the script on activation home-manager.users.${config.home.username}.home.activation.copy-wallpapers = lib.mkMerge [ @@ -56,9 +65,10 @@ in { _ = builtins.trace "Installing wpaperd..."; # Configure wpaperd - home-manager.users.${config.home.username}.home.file."${config.home.homeDirectory}/.config/wpaperd/config.toml".text = builtins.readFile wallpaper_conf; + home-manager.users.${config.home.username}.home.file."${config.home.homeDirectory}/.config/wpaperd/config.toml".text = + builtins.readFile wallpaper_conf; # Debug: Print config file path - _ = builtins.trace "Config file path: ${config.home.homeDirectory}/.config/wpaperd/config.toml"; + traceprint2 = builtins.trace "Config file path: ${config.home.homeDirectory}/.config/wpaperd/config.toml"; }; }