Files
nixos/Droidnix/generated/modules/traveldroid/system/copy_scripts.nix
T
2026-04-10 19:11:22 +02:00

21 lines
414 B
Nix

{ 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;
};
home.file.".config/scripts/update.sh" = {
source = scriptsPath + "/update.sh";
executable = true;
};
};
}