Unverified Commit 5f5210aa authored by h7x4's avatar h7x4 Committed by GitHub
Browse files

Merge pull request #281606 from MarcelCoding/bird-no-auto-restart

nixos/bird2: add option to disable auto reload
parents b0540405 a63a884c
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -18,6 +18,13 @@ in
          <http://bird.network.cz/>
        '';
      };
      autoReload = mkOption {
        type = types.bool;
        default = true;
        description = lib.mdDoc ''
          Whether bird2 should be automatically reloaded when the configuration changes.
        '';
      };
      checkConfig = mkOption {
        type = types.bool;
        default = true;
@@ -68,7 +75,7 @@ in
    systemd.services.bird2 = {
      description = "BIRD Internet Routing Daemon";
      wantedBy = [ "multi-user.target" ];
      reloadTriggers = [ config.environment.etc."bird/bird2.conf".source ];
      reloadTriggers = lib.optional cfg.autoReload config.environment.etc."bird/bird2.conf".source;
      serviceConfig = {
        Type = "forking";
        Restart = "on-failure";