Regenerated
This commit is contained in:
+10
-4
@@ -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."
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user