remove wireguard stuff
This commit is contained in:
parent
ec04addf62
commit
9b8ec24c63
5 changed files with 0 additions and 49 deletions
|
@ -1,5 +1,4 @@
|
|||
{lib, ...}: {
|
||||
imports = [./wireguard.nix];
|
||||
networking = {
|
||||
hostName = "Rico2";
|
||||
useDHCP = lib.mkDefault false;
|
||||
|
|
|
@ -1,23 +0,0 @@
|
|||
{
|
||||
config,
|
||||
secrets,
|
||||
...
|
||||
}: let
|
||||
inherit (secrets.wireguard_config) peers;
|
||||
in {
|
||||
networking.wireguard = {
|
||||
enable = true;
|
||||
interfaces = {
|
||||
wg0 = {
|
||||
ips = peers."${config.networking.hostName}".allowedIPs;
|
||||
privateKeyFile = "/etc/wireguard/private.key";
|
||||
generatePrivateKeyFile = true;
|
||||
listenPort = 51820;
|
||||
peers = with peers; [
|
||||
Proxy
|
||||
Skipper
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,5 +1,4 @@
|
|||
{lib, ...}: {
|
||||
imports = [./wireguard.nix];
|
||||
networking = {
|
||||
hostName = "Skipper";
|
||||
networkmanager = {
|
||||
|
|
|
@ -5,7 +5,6 @@ _: {
|
|||
"/etc/secureboot"
|
||||
"/etc/ssh/keys"
|
||||
"/etc/systemd/nspawn"
|
||||
"/etc/wireguard"
|
||||
"/root/.cache/nix"
|
||||
"/var/cache/apparmor"
|
||||
"/var/cache/fwupd"
|
||||
|
|
|
@ -1,23 +0,0 @@
|
|||
{
|
||||
config,
|
||||
secrets,
|
||||
...
|
||||
}: let
|
||||
inherit (secrets.wireguard_config) peers;
|
||||
in {
|
||||
networking.wireguard = {
|
||||
enable = true;
|
||||
interfaces = {
|
||||
wg0 = {
|
||||
ips = peers."${config.networking.hostName}".allowedIPs;
|
||||
privateKeyFile = "/etc/wireguard/private.key";
|
||||
generatePrivateKeyFile = true;
|
||||
listenPort = 51820;
|
||||
peers = with peers; [
|
||||
Proxy
|
||||
Rico2
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue