all: switch to blocky on rico1
This commit is contained in:
parent
337f17faac
commit
e5fdd52581
3 changed files with 8 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
{ lib, ... }: {
|
{ lib, ... }: {
|
||||||
networking = {
|
networking = {
|
||||||
nameservers = [
|
nameservers = [
|
||||||
"10.10.10.10"
|
"10.10.10.11"
|
||||||
];
|
];
|
||||||
useDHCP = lib.mkDefault false;
|
useDHCP = lib.mkDefault false;
|
||||||
};
|
};
|
||||||
|
|
|
@ -16,6 +16,7 @@ in
|
||||||
{
|
{
|
||||||
nodeconfig.wireguard = {
|
nodeconfig.wireguard = {
|
||||||
inherit interface-name;
|
inherit interface-name;
|
||||||
|
dns = [ "10.10.10.11" ];
|
||||||
endpoint = "165.232.180.97:51821";
|
endpoint = "165.232.180.97:51821";
|
||||||
endpoint-publickey = "NNw/iDMCTq8mpHncrecEh4UlvtINX/UUDtCJf2ToFR4=";
|
endpoint-publickey = "NNw/iDMCTq8mpHncrecEh4UlvtINX/UUDtCJf2ToFR4=";
|
||||||
allowed-ips = if hostName == "skipper" then [ "10.10.10.0/24" ] else [ "10.10.10.1" "10.10.10.2" "10.10.10.3" ];
|
allowed-ips = if hostName == "skipper" then [ "10.10.10.0/24" ] else [ "10.10.10.1" "10.10.10.2" "10.10.10.3" ];
|
||||||
|
|
|
@ -37,6 +37,11 @@ let cfg = config.nodeconfig; in {
|
||||||
default = "wg0";
|
default = "wg0";
|
||||||
description = "Name of the WireGuard interface created";
|
description = "Name of the WireGuard interface created";
|
||||||
};
|
};
|
||||||
|
dns = lib.mkOption {
|
||||||
|
type = lib.types.listOf lib.types.str;
|
||||||
|
default = [ ];
|
||||||
|
description = "list of DNS servers";
|
||||||
|
};
|
||||||
allowed-ips = lib.mkOption {
|
allowed-ips = lib.mkOption {
|
||||||
type = lib.types.listOf lib.types.str;
|
type = lib.types.listOf lib.types.str;
|
||||||
default = [ "10.0.0.0/24" "fd7c::/64" ];
|
default = [ "10.0.0.0/24" "fd7c::/64" ];
|
||||||
|
@ -56,7 +61,7 @@ let cfg = config.nodeconfig; in {
|
||||||
interfaces = {
|
interfaces = {
|
||||||
"${cfg.wireguard.interface-name}" = {
|
"${cfg.wireguard.interface-name}" = {
|
||||||
address = cfg.wireguard.node-ips;
|
address = cfg.wireguard.node-ips;
|
||||||
dns = [ "10.10.10.10" ];
|
dns = cfg.wireguard.dns;
|
||||||
listenPort = cfg.wireguard.listen-port;
|
listenPort = cfg.wireguard.listen-port;
|
||||||
privateKeyFile = cfg.wireguard.pk-file;
|
privateKeyFile = cfg.wireguard.pk-file;
|
||||||
peers = [
|
peers = [
|
||||||
|
|
Loading…
Reference in a new issue