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; with config.krebs.lib;
let {
out = { options.krebs.build = {
# TODO deprecate krebs.build.host # TODO deprecate krebs.build.host
options.krebs.build.host = mkOption { host = mkOption {
type = types.host; type = types.host;
}; };
# TODO make krebs.build.profile shell safe # TODO make krebs.build.profile shell safe
options.krebs.build.profile = mkOption { profile = mkOption {
type = types.str; type = types.str;
default = "/nix/var/nix/profiles/system"; default = "/nix/var/nix/profiles/system";
}; };
# TODO deprecate krebs.build.user source = mkOption {
options.krebs.build.user = mkOption {
type = types.user;
};
options.krebs.build.source = mkOption {
type = types.attrsOf types.source; type = types.attrsOf types.source;
default = {}; default = {};
}; };
};
in out # TODO deprecate krebs.build.user
user = mkOption {
type = types.user;
};
};
}