new wallpaperthingie
This commit is contained in:
@@ -4,29 +4,15 @@ let
|
||||
# Define source and destination paths
|
||||
source_path = "${flakeRoot}/assets/hyprland/wallpaperstuff";
|
||||
destination_path = "${config.home.homeDirectory}/Droidnix/wallpaperstuff";
|
||||
script_path = "${flakeRoot}/assets/hyprland/scripts/copy-wallpapers.sh";
|
||||
script_path = "${flakeRoot}/assets/hyprland/scripts/copy_wallpaperstuff.sh";
|
||||
wallpaper_conf = "${flakeRoot}/assets/hyprland/wallpaperstuff/wallpaper.conf";
|
||||
|
||||
# Define the script in the let block
|
||||
copy_wallpapers_script = ''
|
||||
Echo "hoi"
|
||||
'';
|
||||
|
||||
# Print the script contents during the build
|
||||
traceScript = builtins.trace (lib.concatStringsSep "\n" [
|
||||
"=== Contents of copy-wallpapers.sh ==="
|
||||
copy_wallpapers_script
|
||||
"=== End of copy-wallpapers.sh ==="
|
||||
]);
|
||||
in {
|
||||
options = {
|
||||
wallpaper.enable = lib.mkEnableOption "Wallpaper setup";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.wallpaper.enable {
|
||||
|
||||
# Use a script to copy all files from source to destination
|
||||
home-manager.users.${config.home.username}.home.file."${script_path}".text = copy_wallpapers_script;
|
||||
# Ensure the script is executable
|
||||
home-manager.users.${config.home.username}.home.file."${script_path}".executable = true;
|
||||
|
||||
# Run the script on activation
|
||||
@@ -35,6 +21,7 @@ in {
|
||||
cat "${script_path}"
|
||||
"${script_path}"
|
||||
'';
|
||||
|
||||
# Install wpaperd
|
||||
home-manager.users.${config.home.username}.home.packages = [ pkgs.wpaperd ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user