blob: 012b0ce3c09e3c1f21d01815ab4cbdf16f01d4c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
{ config, lib, pkgs, ... }:
{
boot = {
loader.grub = {
enable = true;
device = "/dev/sda";
};
kernelModules = [ ];
};
systemd.network.networks."10-wan" = {
name = "enp6s16";
# ipv4 gets it's config through dhcp just fine!
DHCP = "ipv4";
# as is usual, the dhcp ipv6 configuration is faulty,
# and does not add the correct default route.
address = [ "2604:2dc0:303::4:0:d9" ];
routes = [ { Gateway = "2604:2dc0:303::6a7e"; } ];
};
zramSwap = {
enable = true;
algorithm = "zstd";
swapDevices = 1;
memoryPercent = 50;
};
}
|