remove wireguard stuff

This commit is contained in:
Adithya 2023-10-08 16:29:47 +05:30
parent ec04addf62
commit 9b8ec24c63
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
5 changed files with 0 additions and 49 deletions

View file

@ -1,5 +1,4 @@
{lib, ...}: {
imports = [./wireguard.nix];
networking = {
hostName = "Rico2";
useDHCP = lib.mkDefault false;

View file

@ -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
];
};
};
};
}

View file

@ -1,5 +1,4 @@
{lib, ...}: {
imports = [./wireguard.nix];
networking = {
hostName = "Skipper";
networkmanager = {

View file

@ -5,7 +5,6 @@ _: {
"/etc/secureboot"
"/etc/ssh/keys"
"/etc/systemd/nspawn"
"/etc/wireguard"
"/root/.cache/nix"
"/var/cache/apparmor"
"/var/cache/fwupd"

View file

@ -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
];
};
};
};
}