23 lines
489 B
Nix
23 lines
489 B
Nix
{ lib, config, pkgs, flakeRoot, ... }:
|
|
|
|
let
|
|
username = config.defaultUser or "henrov";
|
|
scriptsPath = flakeRoot + "/generated/.config/scripts";
|
|
in
|
|
{
|
|
#################################
|
|
# Home Manager integration
|
|
#################################
|
|
|
|
home-manager.users.${username} = {
|
|
home.file.".config/scripts" = {
|
|
source = scriptsPath;
|
|
recursive = true;
|
|
};
|
|
|
|
home.activation.makeScriptsExecutable = ''
|
|
chmod -R +x $HOME/.config/scripts
|
|
'';
|
|
};
|
|
}
|