stockholm/krebs/3modules/build.nix

30 lines
556 B
Nix

{ config, ... }:
with import <stockholm/lib>;
{
options.krebs.build = {
# TODO deprecate krebs.build.host
host = mkOption {
type = types.host;
};
profile = mkOption {
type = types.absolute-path;
default = "/nix/var/nix/profiles/system";
};
source = mkOption {
type = types.attrsOf types.source;
default = {};
};
# TODO deprecate krebs.build.user
user = mkOption {
type = types.user;
};
};
config.krebs.build.source.stockholm.file = mkDefault (toString <stockholm>);
}