From ddbe63891397b1f7468e58862ae5253da56ea89d Mon Sep 17 00:00:00 2001 From: Henro Veijer Date: Mon, 2 Mar 2026 19:16:36 +0100 Subject: [PATCH] Home manager module rewrite --- henrovnix_ok/README.org | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/henrovnix_ok/README.org b/henrovnix_ok/README.org index 0c1d8cdb8..a757a693d 100755 --- a/henrovnix_ok/README.org +++ b/henrovnix_ok/README.org @@ -2909,13 +2909,15 @@ This makes sure all ./assets/copy_stuff ends up in the right folder #+begin_src nix :tangle home/copy_stuff.nix :noweb tangle :mkdirp yes. { config, pkgs, lib, ... }: { - # Ensure the script is executable and available home.packages = [ pkgs.bash ]; - - # Add the activation script - system.activationScripts.recreateConfig = lib.mkAfter "setupNetworking" '' - ${config.flakeRoot.outPath}/assets/scripts/recreate_config.sh - ''; + home.activation = { + recreateConfig = { + text = '' + ${pkgs.bash}/bin/bash "${config.flakeRoot.outPath}/assets/scripts/recreate_config.sh" + ''; + deps = [ pkgs.bash ]; + }; + }; } #+end_src