mirror of
https://github.com/kaesaecracker/nixos-configuration.git
synced 2025-01-18 18:40:14 +01:00
hopefully fix networking
This commit is contained in:
parent
c1f1f7d3ac
commit
c446e6c3f4
|
@ -6,6 +6,11 @@
|
||||||
hostname = "157.90.146.125"; # 2a01:4f8:c012:7137::/64
|
hostname = "157.90.146.125"; # 2a01:4f8:c012:7137::/64
|
||||||
user = "root";
|
user = "root";
|
||||||
};
|
};
|
||||||
|
"vpn2" = {
|
||||||
|
host = "vpn2 hetzner-vpn2";
|
||||||
|
hostname = "2a01:4f8:c013:65dd::1";
|
||||||
|
user = "root";
|
||||||
|
};
|
||||||
"vpn1-ts" = {
|
"vpn1-ts" = {
|
||||||
host = "vpn1-ts hetzner-vpn1.donkey-pentatonic.ts.net";
|
host = "vpn1-ts hetzner-vpn1.donkey-pentatonic.ts.net";
|
||||||
hostname = "hetzner-vpn1.donkey-pentatonic.ts.net";
|
hostname = "hetzner-vpn1.donkey-pentatonic.ts.net";
|
||||||
|
|
|
@ -11,6 +11,9 @@ nixpkgs.lib.nixosSystem {
|
||||||
# uncomment for build check on non arm system (requires --impure)
|
# uncomment for build check on non arm system (requires --impure)
|
||||||
# nixpkgs.buildPlatform = builtins.currentSystem;
|
# nixpkgs.buildPlatform = builtins.currentSystem;
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
services.tailscale.useRoutingFeatures = "both";
|
||||||
|
}
|
||||||
{
|
{
|
||||||
users.users = {
|
users.users = {
|
||||||
root.openssh.authorizedKeys.keys = [
|
root.openssh.authorizedKeys.keys = [
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
tmp.cleanOnBoot = true;
|
tmp.cleanOnBoot = true;
|
||||||
|
kernelParams = [ "console=tty" ];
|
||||||
loader = {
|
loader = {
|
||||||
systemd-boot.enable = true;
|
systemd-boot.enable = true;
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
|
@ -19,6 +20,7 @@
|
||||||
"xhci_pci"
|
"xhci_pci"
|
||||||
"virtio_scsi"
|
"virtio_scsi"
|
||||||
"sr_mod"
|
"sr_mod"
|
||||||
|
"virtio_gpu"
|
||||||
];
|
];
|
||||||
kernelModules = [ ];
|
kernelModules = [ ];
|
||||||
};
|
};
|
||||||
|
@ -43,52 +45,19 @@
|
||||||
{ device = "/dev/disk/by-uuid/e147721d-86b5-40d7-a231-c6ea391c563d"; }
|
{ device = "/dev/disk/by-uuid/e147721d-86b5-40d7-a231-c6ea391c563d"; }
|
||||||
];
|
];
|
||||||
|
|
||||||
# This file was populated at runtime with the networking
|
networking.useNetworkd = true;
|
||||||
# details gathered from the active system.
|
systemd.network = {
|
||||||
networking = {
|
enable = true;
|
||||||
useDHCP = true;
|
networks."10-wan" = {
|
||||||
domain = "";
|
matchConfig.Name = "enp1s0";
|
||||||
nameservers = [ "8.8.8.8" ];
|
networkConfig.DHCP = "ipv4";
|
||||||
defaultGateway6 = {
|
address = [
|
||||||
address = "fe80::1";
|
"2a01:4f8:c013:65dd::1/64"
|
||||||
interface = "enp1s0";
|
|
||||||
};
|
|
||||||
interfaces = {
|
|
||||||
enp1s0 = {
|
|
||||||
#ipv4 = {
|
|
||||||
# addresses = [
|
|
||||||
# {
|
|
||||||
# address = "157.90.146.125";
|
|
||||||
# prefixLength = 32;
|
|
||||||
# }
|
|
||||||
# ];
|
|
||||||
# routes = [
|
|
||||||
# {
|
|
||||||
# address = "172.31.1.1";
|
|
||||||
# prefixLength = 32;
|
|
||||||
# }
|
|
||||||
# ];
|
|
||||||
#};
|
|
||||||
ipv6 = {
|
|
||||||
addresses = [
|
|
||||||
{
|
|
||||||
address = "2a01:4f8:c013:65dd::";
|
|
||||||
prefixLength = 64;
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
routes = [
|
routes = [
|
||||||
{
|
{ Gateway = "fe80::1"; }
|
||||||
address = "fe80::1";
|
|
||||||
prefixLength = 128;
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
#services.udev.extraRules = ''
|
|
||||||
# ATTR{address}=="96:00:02:87:7f:c9", NAME="eth0"
|
|
||||||
#'';
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue