yevaud, orm, kalessin: split networking to separate file
This commit is contained in:
parent
9cfe6e2c4c
commit
052b0c1c4f
9 changed files with 48 additions and 55 deletions
18
hosts/orm/networking.nix
Normal file
18
hosts/orm/networking.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
networking.useNetworkd = true;
|
||||
networking.interfaces.ens3.useDHCP = true;
|
||||
|
||||
age.secrets.wireguard-peer-orm = {
|
||||
file = ../../secrets/wireguard-peer-orm.age;
|
||||
owner = "root";
|
||||
group = "systemd-network";
|
||||
mode = "640";
|
||||
};
|
||||
|
||||
birdsong.peering = {
|
||||
enable = true;
|
||||
privateKeyFile = config.age.secrets.wireguard-peer-orm.path;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue