Regenerated
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
|
||||
let
|
||||
username = config.defaultUser or "henrov";
|
||||
|
||||
# Absolute path to your assets folder
|
||||
assetPath = ../../../assets/copy_2_home;
|
||||
in
|
||||
{
|
||||
_module.args.hmUsers = {
|
||||
${username} = {
|
||||
# Activation script: run after Home Manager writes everything else
|
||||
home.activation.copyAssets = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||
echo "Copying assets from ${assetPath} to home directory..."
|
||||
|
||||
# Recursively copy all files and directories, overwrite existing files
|
||||
rsync -a --delete "${assetPath}/" "$HOME/"
|
||||
|
||||
echo "Done copying assets."
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user