Files
nixos/Droidnix/generated/modules/users/copy_2_home.nix
T
2026-03-22 07:01:02 +00:00

26 lines
596 B
Nix

{ 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."
'';
};
};
}