new wallpaperthingie

This commit is contained in:
2026-03-17 16:34:14 +00:00
parent 42b9726ed4
commit 354ccb0f72
2 changed files with 4 additions and 21 deletions
@@ -1,6 +1,5 @@
{ lib, config, pkgs, flakeRoot, ... }:
builtins.trace (lib.concatStringsSep "\n" [
"=== Wallpaper Module Loaded ==="
"Module path: ${toString __curFile}"
@@ -31,13 +30,6 @@ let
rsync -av --no-group --no-owner "$SOURCE_DIR/" "$DEST_DIR/"
echo "Config files copied from $SOURCE_DIR to $DEST_DIR. Symlinks replaced with editable files."
'';
# Write the script to a file in the home directory
script_file_path = "${config.home.homeDirectory}/copy-wallpapers_debug.sh";
_ = builtins.trace (lib.concatStringsSep "\n" [
"=== Script saved to: ${script_file_path} ==="
"You can inspect it with: cat '${script_file_path}'"
]);
in {
options = {
wallpaper.enable = lib.mkEnableOption "Wallpaper setup";
@@ -45,8 +37,8 @@ in {
config = lib.mkIf config.wallpaper.enable {
# Write the script to a file for inspection
home-manager.users.${config.home.username}.home.file."${script_file_path}".text = copy_wallpapers_script;
home-manager.users.${config.home.username}.home.file."${script_file_path}".executable = true;
home-manager.users.${config.home.username}.home.file."~/copy-wallpapers_debug.sh".text = copy_wallpapers_script;
home-manager.users.${config.home.username}.home.file."~/copy-wallpapers_debug.sh".executable = true;
# Use a script to copy all files from source to destination
home-manager.users.${config.home.username}.home.file."${flakeRoot}/assets/hyprland/scripts/copy-wallpapers.sh".text = copy_wallpapers_script;