summaryrefslogtreecommitdiffstats
path: root/krebs/3modules
diff options
context:
space:
mode:
Diffstat (limited to 'krebs/3modules')
-rw-r--r--krebs/3modules/build.nix25
1 files changed, 12 insertions, 13 deletions
diff --git a/krebs/3modules/build.nix b/krebs/3modules/build.nix
index 5924d1033..bc04345d6 100644
--- a/krebs/3modules/build.nix
+++ b/krebs/3modules/build.nix
@@ -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;
+ };
+ };
+}