WireGuard: Difference between revisions

imported>Arosl
Client setup: linting of code
imported>Arosl
Client setup: added comment about PrivateKeyFile permissions
Line 303: Line 303:
         # See also man systemd.netdev (also contains info on the permissions of the key files)
         # See also man systemd.netdev (also contains info on the permissions of the key files)
         wireguardConfig = {
         wireguardConfig = {
           # Don't use a file from the Nix store as these are world readable.
           # 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 f= "/run/keys/wireguard-privkey";
           ListenPort = 9918;
           ListenPort = 9918;