new wallpaperthingie
This commit is contained in:
+9
-4
@@ -807,11 +807,11 @@ let
|
||||
echo "Config files copied from $SOURCE_DIR to $DEST_DIR. Symlinks replaced with editable files."
|
||||
'';
|
||||
|
||||
# Print the script contents during the build
|
||||
# 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" [
|
||||
"=== Contents of copy-wallpapers.sh ==="
|
||||
copy_wallpapers_script
|
||||
"=== End of copy-wallpapers.sh ==="
|
||||
"=== Script saved to: ${script_file_path} ==="
|
||||
"You can inspect it with: cat '${script_file_path}'"
|
||||
]);
|
||||
in {
|
||||
options = {
|
||||
@@ -819,6 +819,10 @@ 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;
|
||||
|
||||
# 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;
|
||||
home-manager.users.${config.home.username}.home.file."${flakeRoot}/assets/hyprland/scripts/copy-wallpapers.sh".executable = true;
|
||||
@@ -835,6 +839,7 @@ in {
|
||||
home-manager.users.${config.home.username}.home.file."${config.home.homeDirectory}/.config/wpaperd/config.toml".text = builtins.readFile wallpaper_conf;
|
||||
};
|
||||
}
|
||||
|
||||
#+END_SRC
|
||||
|
||||
** =generated/hyprland/notifications/top.nix=
|
||||
|
||||
Reference in New Issue
Block a user