Regenerated

This commit is contained in:
2026-03-22 08:10:34 +00:00
parent 8557848bf0
commit 7bcc092658
31 changed files with 1521 additions and 0 deletions
@@ -0,0 +1,20 @@
{ lib, config, pkgs, flakeRoot, ... }:
let
username = config.defaultUser or "henrov";
homeDir = config.home.homeDirectory or "/home/${username}";
assetPath = "${flakeRoot}/assets/copy_2_home";
in
{
_module.args.hmUsers = {
${username} = {
home.activation.copyAssets = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
echo "Copying assets from ${assetPath} to ${homeDir} ..."
mkdir -p "${homeDir}"
# Copy recursively, overwrite existing files, preserve symlinks
cp -a "${assetPath}/." "${homeDir}/"
echo "Done copying assets."
'';
};
};
}