{ lib, config, ... }: let username = config.defaultUser or "henrov"; # Include the asset folder in the Nix store assetPath = builtins.path { path = ../../../assets/copy_2_home; }; in { _module.args.hmUsers = { ${username} = { home.activation.copyAssets = lib.hm.dag.entryAfter [ "writeBoundary" ] '' echo "Copying assets to home directory..." # List files for debug ls -la ${assetPath} # Copy recursively, overwrite existing, keep others intact cp -rT ${assetPath} "$HOME" echo "Done copying assets." ''; }; }; }