Création de la config de base WireGuard #4

Closed
nyanloutre wants to merge 0 commits from wireguard-arn into master
Owner

TODO: use credentials

systemd.network.netdevs.wg0.wireguardConfig.PrivateKey = "@network.wireguard.private.wg0";
systemd.network.netdevs.wg0.wireguardPeers = [
    {
        wireguardPeerConfig = {
            PresharedKey = "@network.wireguard.preshared.wg0";
        };
    }
];

systemd.services.systemd-networkd.serviceConfig = {
    LoadCredential = [
        "network.wireguard.private.wg0:/mnt/secrets/wireguard.private"
        "network.wireguard.preshared.wg0:/mnt/secrets/wireguard.preshared"
    ];
}
TODO: use credentials ``` systemd.network.netdevs.wg0.wireguardConfig.PrivateKey = "@network.wireguard.private.wg0"; systemd.network.netdevs.wg0.wireguardPeers = [ { wireguardPeerConfig = { PresharedKey = "@network.wireguard.preshared.wg0"; }; } ]; systemd.services.systemd-networkd.serviceConfig = { LoadCredential = [ "network.wireguard.private.wg0:/mnt/secrets/wireguard.private" "network.wireguard.preshared.wg0:/mnt/secrets/wireguard.preshared" ]; } ```
nyanloutre added 1 commit 2024-11-08 11:04:19 +01:00
nyanloutre self-assigned this 2024-11-08 11:04:24 +01:00
nyanloutre added 2 commits 2024-11-20 09:18:46 +01:00
nyanloutre added 1 commit 2024-11-20 16:50:29 +01:00
nyanloutre added 1 commit 2024-11-20 21:19:24 +01:00
nyanloutre added 1 commit 2024-11-21 11:32:41 +01:00
nyanloutre added 1 commit 2024-11-25 17:26:47 +01:00
nyanloutre added 1 commit 2024-11-25 18:09:51 +01:00
nyanloutre closed this pull request 2024-11-25 18:11:01 +01:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: nyanloutre/nixos-config#4
No description provided.