diff options
| author | Mel <mel@rnrd.eu> | 2025-10-03 17:44:48 +0200 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2025-10-03 17:44:48 +0200 |
| commit | 79537dae587a8ec0efa7e990ba41eebb51df2019 (patch) | |
| tree | 1368e34d8b8620149fffbad93f8ada88b4b2c216 /machines/taureau/devices.nix | |
| parent | 640a8bd6886c12f48d1f0230d60ed69bd8e46880 (diff) | |
| download | network-79537dae587a8ec0efa7e990ba41eebb51df2019.tar.zst network-79537dae587a8ec0efa7e990ba41eebb51df2019.zip | |
Add new taureau host
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'machines/taureau/devices.nix')
| -rw-r--r-- | machines/taureau/devices.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/machines/taureau/devices.nix b/machines/taureau/devices.nix new file mode 100644 index 0000000..b48c84b --- /dev/null +++ b/machines/taureau/devices.nix @@ -0,0 +1,39 @@ +{ config, lib, pkgs, ... }: + +{ + boot = { + loader.grub = { + enable = true; + device = "/dev/sda"; + }; + + kernelModules = [ "wireguard" ]; + }; + + networking = { + nameservers = [ + "1.1.1.1" "1.0.0.1" + ]; + # networkd handles our network + useDHCP = false; + }; + + systemd.network.enable = true; + 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; + }; +} + |
