Files
nixos/Droidnix/generated/modules/users/copy_to_root.nix
T
2026-03-22 06:52:56 +00:00

20 lines
398 B
Nix

{ lib, config, ... }:
let
username = config.defaultUser or "henrov";
assetPath = ../../../assets/copy_2_home;
in
{
_module.args.hmUsers = {
${username} = {
home.activation.copyAssets = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
echo "Copying assets to home directory..."
cp -r ${assetPath}/* "$HOME"/
echo "Done copying assets."
'';
};
};
}