Files
nixy/home/system/scripts/default.nix
T
2026-09-28 20:18:12 +02:00

17 lines
380 B
Nix

# Shared script registry: any module that owns a script contributes it here
# (`scripts.<name> = ...`), and every module reads it back via the `scripts`
# module argument.
{
lib,
config,
...
}: {
options.scripts = lib.mkOption {
type = lib.types.attrsOf lib.types.package;
default = {};
internal = true;
};
config._module.args.scripts = config.scripts;
}