WireGuard: Difference between revisions

imported>Nrbray
m avoids warning trace: warning: The combination of `systemd.network.enable = true` [wireguard], `networking.useDHCP = true` and `networking.useNetworkd = false` can cause both networkd and dhcpcd to manage the same interfaces. This can lead to loss of netw
imported>Purepani
m This is a typo
Line 305: Line 305:
         wireguardConfig = {
         wireguardConfig = {
           # Don't use a file from the Nix store as these are world readable. Must be readable by the systemd.network user
           # Don't use a file from the Nix store as these are world readable. Must be readable by the systemd.network user
           PrivateKeyFile f= "/run/keys/wireguard-privkey";
           PrivateKeyFile = "/run/keys/wireguard-privkey";
           ListenPort = 9918;
           ListenPort = 9918;
         };
         };