Skip to content

Commit

Permalink
bird: init hostName
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelCoding committed Nov 10, 2024
1 parent d2189e7 commit 5a0fb26
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@ let
in
{
options.services.bird2 = {
# we do not wan't merged config's to result in multiple routerId's
routerId = lib.mkOption {
type = lib.types.str;
description = "The router ID is a world-wide unique identification of your router, usually one of router's IPv4 addresses.";
};

# networking.domain has no default value...
#hostName = lib.mkOption {
# type = lib.types.str;
# default = "${config.networking.hostName}.${config.networking.domain}";
#};

protocols =
let
protocolOption = lib.mkOption {
Expand Down Expand Up @@ -53,6 +60,7 @@ in
entries)
cfg.protocols);
in
#hostname ${cfg.hostName};
''
router id ${cfg.routerId};
Expand Down

0 comments on commit 5a0fb26

Please sign in to comment.