Regenerated

This commit is contained in:
2026-03-22 07:01:00 +00:00
parent c177ec7443
commit 27897f6304
32 changed files with 10 additions and 1524 deletions
+10 -4
View File
@@ -284,14 +284,16 @@ in {
* We have a nix file that will copy anything from ./assets/copy_2_home to $HOME
** =generated/modules/users/copy_to_root.nix=
** =generated/modules/users/copy_2_home.nix=
This copies stuff to the user home-folder
#+BEGIN_SRC nix :tangle generated/modules/users/copy_to_root.nix :noweb tangle :mkdirp yes :eval never-html
#+BEGIN_SRC nix :tangle generated/modules/users/copy_2_home.nix :noweb tangle :mkdirp yes :eval never-html
{ lib, config, ... }:
let
username = config.defaultUser or "henrov";
assetPath = ../../../assets/copy_2_home;
# Include the asset folder in the Nix store
assetPath = builtins.path { path = ../../../assets/copy_2_home; };
in
{
_module.args.hmUsers = {
@@ -299,7 +301,11 @@ in
home.activation.copyAssets = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
echo "Copying assets to home directory..."
cp -r ${assetPath}/* "$HOME"/
# List files for debug
ls -la ${assetPath}
# Copy recursively, overwrite existing, keep others intact
cp -rT ${assetPath} "$HOME"
echo "Done copying assets."
'';