treewide: migrate networking to systemd-networkd

This commit is contained in:
Katherina Walshe-Grey 2024-11-05 18:31:39 +00:00
parent 955409c8ef
commit 9cfe6e2c4c
8 changed files with 36 additions and 13 deletions

View file

@ -1,9 +1,18 @@
{ config, lib, pkgs, ... }:
{
networking.useNetworkd = true;
systemd.network.wait-online.enable = false;
networking.networkmanager.enable = true;
age.secrets.wireguard-peer-tohru.file = ../../secrets/wireguard-peer-tohru.age;
age.secrets.wireguard-peer-tohru = {
file = ../../secrets/wireguard-peer-tohru.age;
owner = "root";
group = "systemd-network";
mode = "640";
};
birdsong.peering = {
enable = true;
privateKeyFile = config.age.secrets.wireguard-peer-tohru.path;