new wallpaperthingie
This commit is contained in:
@@ -1,10 +1,4 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
flakeRoot,
|
||||
...
|
||||
}:
|
||||
{ lib, config, pkgs, flakeRoot, ... }:
|
||||
|
||||
let
|
||||
# Define source and destination paths
|
||||
@@ -12,18 +6,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";
|
||||
|
||||
# Debug: Print paths to verify they're correct
|
||||
traceDebug = 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 = {
|
||||
@@ -32,14 +14,25 @@ in
|
||||
|
||||
config = lib.mkIf config.wallpaper.enable {
|
||||
# Debug: Print activation message
|
||||
traceDebugConfig = builtins.trace "=== Wallpaper module is enabled ===";
|
||||
builtins.trace "=== Wallpaper module is enabled ===";
|
||||
|
||||
# Copy the script to the correct location and make it executable
|
||||
home-manager.users.${config.home.username}.home.file."${script_path}".source = "${script_path}";
|
||||
# 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 ==="
|
||||
]
|
||||
);
|
||||
|
||||
# Ensure the script is executable
|
||||
home-manager.users.${config.home.username}.home.file."${script_path}".executable = true;
|
||||
|
||||
# Debug: Print script path
|
||||
traceDebugScript = builtins.trace "Script path: ${script_path}";
|
||||
builtins.trace "Script path: ${script_path}";
|
||||
|
||||
# Run the script on activation
|
||||
home-manager.users.${config.home.username}.home.activation.copy-wallpapers = lib.mkMerge [
|
||||
@@ -62,13 +55,13 @@ in
|
||||
home-manager.users.${config.home.username}.home.packages = [ pkgs.wpaperd ];
|
||||
|
||||
# Debug: Print wpaperd installation
|
||||
traceDebugWpaperd = builtins.trace "Installing wpaperd...";
|
||||
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}";
|
||||
|
||||
# Debug: Print config file path
|
||||
traceDebugConfigFile = builtins.trace "Config file path: ${config.home.homeDirectory}/.config/wpaperd/config.toml";
|
||||
builtins.trace "Config file path: ${config.home.homeDirectory}/.config/wpaperd/config.toml";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user