2024-10-19 04:08:28 +02:00
|
|
|
{
|
2024-10-29 08:55:56 +01:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [
|
|
|
|
# Include the results of the hardware scan.
|
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
2024-10-19 04:08:28 +02:00
|
|
|
|
2024-10-29 08:55:56 +01:00
|
|
|
lyn.kernel.latest.enable = true;
|
|
|
|
lyn.profiles.base.enable = true;
|
|
|
|
lyn.profiles.secureboot.enable = true;
|
|
|
|
lyn.users.lyn.enable = true;
|
2024-10-19 04:08:28 +02:00
|
|
|
|
2024-10-29 08:55:56 +01:00
|
|
|
# network
|
2024-11-12 01:49:31 +01:00
|
|
|
|
2024-11-14 01:36:01 +01:00
|
|
|
lyn.services.wgautomesh = {
|
|
|
|
enable = true;
|
2024-11-20 21:52:56 +01:00
|
|
|
#useIPv6 = false;
|
2024-11-14 01:36:01 +01:00
|
|
|
};
|
2024-11-12 01:49:31 +01:00
|
|
|
|
2024-10-29 08:55:56 +01:00
|
|
|
networking.useDHCP = false;
|
|
|
|
networking.hostName = "wg-gateway"; # Define your hostname.
|
|
|
|
systemd.network.enable = true;
|
|
|
|
systemd.network.networks."10-wan" = {
|
2024-10-19 04:45:20 +02:00
|
|
|
matchConfig.Name = "enp1s0";
|
|
|
|
networkConfig.DHCP = "ipv4";
|
|
|
|
address = [
|
|
|
|
"2a01:4f8:1c1b:d2db::/64"
|
|
|
|
];
|
|
|
|
routes = [
|
2024-10-29 08:55:56 +01:00
|
|
|
{routeConfig.Gateway = "fe80::1";}
|
2024-10-19 04:45:20 +02:00
|
|
|
];
|
|
|
|
};
|
2024-10-19 04:17:26 +02:00
|
|
|
|
2024-10-29 08:55:56 +01:00
|
|
|
system.stateVersion = "24.05";
|
|
|
|
}
|