krebs.build: simplify structure

This commit is contained in:
tv 2016-07-17 00:35:30 +02:00
parent 9c4ed31565
commit d861643919

View File

@ -1,29 +1,28 @@
{ config, lib, ... }:
{ config, ... }:
with config.krebs.lib;
let
out = {
{
options.krebs.build = {
# TODO deprecate krebs.build.host
options.krebs.build.host = mkOption {
host = mkOption {
type = types.host;
};
# TODO make krebs.build.profile shell safe
options.krebs.build.profile = mkOption {
profile = mkOption {
type = types.str;
default = "/nix/var/nix/profiles/system";
};
# TODO deprecate krebs.build.user
options.krebs.build.user = mkOption {
type = types.user;
};
options.krebs.build.source = mkOption {
source = mkOption {
type = types.attrsOf types.source;
default = {};
};
};
in out
# TODO deprecate krebs.build.user
user = mkOption {
type = types.user;
};
};
}