WireGuard: Difference between revisions

m I was simply incorrect in my permissions command. I do not know how to configure private key file correctly in NixOS 24.05.
drop 24.05 compat
Line 283: Line 283:
         };
         };
         wireguardPeers = [
         wireguardPeers = [
          # configuration since nixos-unstable/nixos-24.11
           {
           {
             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"];
          #  };
          #}
         ];
         ];
       };
       };