{ lib, config, pkgs, flakeRoot, ... }: let username = config.defaultUser or "henrov"; scriptsPath = flakeRoot + "/generated/.config/scripts"; in { home-manager.users.${username} = { home.file.".config/scripts" = { source = scriptsPath; recursive = true; }; # Make scripts executable properly home.activation.makeScriptsExecutable = lib.hm.dag.entryAfter ["writeBoundary"] '' chmod -R +x $HOME/.config/scripts ''; }; }