nix-rehash/nix-services/user.nix

18 lines
357 B
Nix
Raw Normal View History

2014-02-17 03:31:11 +04:00
{ 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);
};
}