move rtr options into networking.dn42
This commit is contained in:
parent
025898329e
commit
ab45974a4a
|
@ -38,7 +38,7 @@ in
|
|||
roa4 table dnroa4;
|
||||
roa6 table dnroa6;
|
||||
|
||||
${lib.optionalString config.services.dn42-stayrtr.enable ''
|
||||
${lib.optionalString config.networking.dn42.stayrtr.enable ''
|
||||
protocol rpki roa_dn42 {
|
||||
roa4 { table dnroa4; };
|
||||
roa6 { table dnroa6; };
|
||||
|
@ -49,14 +49,14 @@ in
|
|||
expire 7200;
|
||||
}
|
||||
''}
|
||||
${lib.optionalString config.services.dn42-roagen.enable ''
|
||||
${lib.optionalString config.networking.dn42.roagen.enable ''
|
||||
protocol static {
|
||||
roa4 { table dnroa4; };
|
||||
include "${config.services.dn42-roagen.outputDir}/dn42-roa4.conf";
|
||||
include "${config.networking.dn42.roagen.outputDir}/dn42-roa4.conf";
|
||||
}
|
||||
protocol static {
|
||||
roa6 { table dnroa6; };
|
||||
include "${config.services.dn42-roagen.outputDir}/dn42-roa6.conf";
|
||||
include "${config.networking.dn42.roagen.outputDir}/dn42-roa6.conf";
|
||||
}
|
||||
''}
|
||||
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.services.dn42-roagen;
|
||||
|
||||
cfg = config.networking.dn42.roagen;
|
||||
in
|
||||
{
|
||||
options.services.dn42-roagen = with lib; {
|
||||
options.networking.dn42.roagen = with lib; {
|
||||
enable = mkEnableOption "dn42-roagen";
|
||||
|
||||
outputDir = mkOption {
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.services.dn42-stayrtr;
|
||||
|
||||
cfg = config.networking.dn42.stayrtr;
|
||||
in
|
||||
{
|
||||
options.services.dn42-stayrtr = with lib; {
|
||||
options.networking.dn42.stayrtr = with lib; {
|
||||
enable = mkEnableOption "dn42-stayrtr";
|
||||
|
||||
cache = mkOption {
|
||||
type = types.url;
|
||||
type = types.str;
|
||||
default = "https://dn42.burble.com/roa/dn42_roa_46.json";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue