flake/hosts/wg-gateway/default.nix

32 lines
797 B
Nix
Raw Normal View History

2024-10-19 04:08:28 +02: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
lyn.kernel.latest.enable = true;
lyn.profiles.base.enable = true;
lyn.profiles.secureboot.enable = true;
2024-10-19 04:08:28 +02:00
lyn.users.lyn.enable = true;
# network
2024-10-19 04:59:51 +02:00
networking.useDHCP = false;
2024-10-19 04:21:40 +02:00
networking.hostName = "wg-gateway"; # Define your hostname.
systemd.network.enable = true;
systemd.network.networks."10-wan" = {
matchConfig.Name = "enp1s0";
networkConfig.DHCP = "ipv4";
address = [
"2a01:4f8:1c1b:d2db::/64"
];
routes = [
{ routeConfig.Gateway = "fe80::1"; }
];
};
system.stateVersion = "24.05";
2024-10-19 04:08:28 +02:00
}