Jump to content

WireGuard: Difference between revisions

imported from old wiki
(imported from old wiki)
Line 262: Line 262:
         };
         };
         wireguardPeers = [
         wireguardPeers = [
          # configuration since nixos-unstable/nixos-24.11
           {
           {
             wireguardPeerConfig = {
             PublicKey = "L4msD0mEG2ctKDtaMJW2y3cs1fT2LBRVV7iVlWZ2nZc=";
              PublicKey = "L4msD0mEG2ctKDtaMJW2y3cs1fT2LBRVV7iVlWZ2nZc=";
            AllowedIPs = ["10.100.0.2"];
              AllowedIPs = ["10.100.0.2"];
            };
           }
           }
          # configuration for nixos 24.05
          #{
          #  wireguardPeerConfig = {
          #    PublicKey = "L4msD0mEG2ctKDtaMJW2y3cs1fT2LBRVV7iVlWZ2nZc=";
          #    AllowedIPs = ["10.100.0.2"];
          #  };
          #}
         ];
         ];
       };
       };