20 lines
398 B
Nix
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."
|
|
'';
|
|
};
|
|
};
|
|
}
|