krebs dns: move config to dns module
This commit is contained in:
parent
6af959ad44
commit
a278a6503b
@ -95,16 +95,6 @@ let
|
||||
|
||||
imp = lib.mkMerge [
|
||||
{
|
||||
krebs.dns.providers = {
|
||||
"krebsco.de" = "zones";
|
||||
shack = "hosts";
|
||||
i = "hosts";
|
||||
r = "hosts";
|
||||
w = "hosts";
|
||||
};
|
||||
|
||||
krebs.dns.search-domain = mkDefault "r";
|
||||
|
||||
services.openssh.hostKeys =
|
||||
let inherit (config.krebs.build.host.ssh) privkey; in
|
||||
mkIf (privkey != null) [privkey];
|
||||
|
@ -1,12 +1,21 @@
|
||||
with import <stockholm/lib>;
|
||||
{
|
||||
{ config, ... }: {
|
||||
options = {
|
||||
krebs.dns.providers = mkOption {
|
||||
type = types.attrsOf types.str;
|
||||
};
|
||||
|
||||
krebs.dns.search-domain = mkOption {
|
||||
type = types.nullOr types.hostname;
|
||||
};
|
||||
};
|
||||
config = mkIf config.krebs.enable {
|
||||
krebs.dns.providers = {
|
||||
"krebsco.de" = "zones";
|
||||
shack = "hosts";
|
||||
i = "hosts";
|
||||
r = "hosts";
|
||||
w = "hosts";
|
||||
};
|
||||
krebs.dns.search-domain = mkDefault "r";
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user