new wallpaperthingie

This commit is contained in:
2026-03-17 17:49:37 +00:00
parent a1976d58ae
commit 0cc1db46f4
@@ -1,4 +1,10 @@
{ lib, config, pkgs, flakeRoot, ... }: {
lib,
config,
pkgs,
flakeRoot,
...
}:
let let
# Define source and destination paths # Define source and destination paths
@@ -8,17 +14,20 @@ let
wallpaper_conf = "${flakeRoot}/assets/hyprland/wallpaperstuff/wallpaper.conf"; wallpaper_conf = "${flakeRoot}/assets/hyprland/wallpaperstuff/wallpaper.conf";
# Debug: Print paths to verify they're correct # Debug: Print paths to verify they're correct
_ = builtins.trace (lib.concatStringsSep "\n" [ _ = builtins.trace (
"=== Wallpaper Module Debug ===" lib.concatStringsSep "\n" [
"Source path: ${source_path}" "=== Wallpaper Module Debug ==="
"Destination path: ${destination_path}" "Source path: ${source_path}"
"Script path: ${script_path}" "Destination path: ${destination_path}"
"Wallpaper config: ${wallpaper_conf}" "Script path: ${script_path}"
"=== End of Debug ===" "Wallpaper config: ${wallpaper_conf}"
]); "=== End of Debug ==="
in { ]
);
in
{
options = { options = {
wallpaper.enable = lib.mkEnableOption "Wallpaper setup" default = true; wallpaper.enable = lib.mkEnableOption "Wallpaper setup";
}; };
config = lib.mkIf config.wallpaper.enable { config = lib.mkIf config.wallpaper.enable {
@@ -30,7 +39,7 @@ in {
home-manager.users.${config.home.username}.home.file."${script_path}".executable = true; home-manager.users.${config.home.username}.home.file."${script_path}".executable = true;
# Debug: Print script path # Debug: Print script path
_ = builtins.trace "Script path: ${script_path}"; traceprint1_ = builtins.trace "Script path: ${script_path}";
# Run the script on activation # Run the script on activation
home-manager.users.${config.home.username}.home.activation.copy-wallpapers = lib.mkMerge [ home-manager.users.${config.home.username}.home.activation.copy-wallpapers = lib.mkMerge [
@@ -56,9 +65,10 @@ in {
_ = builtins.trace "Installing wpaperd..."; _ = builtins.trace "Installing wpaperd...";
# Configure 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 # 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";
}; };
} }