mirror of
https://github.com/kiberpipa/nix-rehash.git
synced 2024-08-16 23:30:25 +03:00
18 lines
357 B
Nix
18 lines
357 B
Nix
|
{ config, pkgs, ... }:
|
||
|
with pkgs.lib;
|
||
|
{
|
||
|
options = {
|
||
|
userNix.startScripts = mkOption {
|
||
|
default = {};
|
||
|
description = "Scripts (as text) to be run during build, executed alphabetically";
|
||
|
};
|
||
|
|
||
|
userNix.startScript = mkOption {};
|
||
|
|
||
|
};
|
||
|
|
||
|
config = {
|
||
|
userNix.startScript = concatStrings (attrValues config.userNix.startScripts);
|
||
|
};
|
||
|
}
|