new wallpaperthingie
This commit is contained in:
@@ -14,7 +14,7 @@ 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 (
|
traceDebug = builtins.trace (
|
||||||
lib.concatStringsSep "\n" [
|
lib.concatStringsSep "\n" [
|
||||||
"=== Wallpaper Module Debug ==="
|
"=== Wallpaper Module Debug ==="
|
||||||
"Source path: ${source_path}"
|
"Source path: ${source_path}"
|
||||||
@@ -32,14 +32,14 @@ in
|
|||||||
|
|
||||||
config = lib.mkIf config.wallpaper.enable {
|
config = lib.mkIf config.wallpaper.enable {
|
||||||
# Debug: Print activation message
|
# Debug: Print activation message
|
||||||
_ = builtins.trace "=== Wallpaper module is enabled ===";
|
traceDebugConfig = builtins.trace "=== Wallpaper module is enabled ===";
|
||||||
|
|
||||||
# Copy the script to the correct location and make it executable
|
# Copy the script to the correct location and make it executable
|
||||||
home-manager.users.${config.home.username}.home.file."${script_path}".source = script_path;
|
home-manager.users.${config.home.username}.home.file."${script_path}".source = "${script_path}";
|
||||||
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}";
|
traceDebugScript = 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 [
|
||||||
@@ -62,13 +62,13 @@ in
|
|||||||
home-manager.users.${config.home.username}.home.packages = [ pkgs.wpaperd ];
|
home-manager.users.${config.home.username}.home.packages = [ pkgs.wpaperd ];
|
||||||
|
|
||||||
# Debug: Print wpaperd installation
|
# Debug: Print wpaperd installation
|
||||||
_ = builtins.trace "Installing wpaperd...";
|
traceDebugWpaperd = builtins.trace "Installing wpaperd...";
|
||||||
|
|
||||||
# Configure wpaperd
|
# Configure wpaperd
|
||||||
home-manager.users.${config.home.username}.home.file."${config.home.homeDirectory}/.config/wpaperd/config.toml".text =
|
home-manager.users.${config.home.username}.home.file."${config.home.homeDirectory}/.config/wpaperd/config.toml".text =
|
||||||
builtins.readFile wallpaper_conf;
|
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";
|
traceDebugConfigFile = builtins.trace "Config file path: ${config.home.homeDirectory}/.config/wpaperd/config.toml";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user