diff options
| author | Mel <mel@rnrd.eu> | 2026-08-16 20:27:36 +0200 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2026-09-05 20:06:01 +0200 |
| commit | fa49e4a5d8ec8287fbd51046c26a84e8c99a4ec5 (patch) | |
| tree | aecc4a141396f1f19e11703c9b8b658fb7325b7c /machines/renne/devices.nix | |
| parent | 72083343b49c35c3098e5b239d8e407cf581660a (diff) | |
| download | network-fa49e4a5d8ec8287fbd51046c26a84e8c99a4ec5.tar.zst network-fa49e4a5d8ec8287fbd51046c26a84e8c99a4ec5.zip | |
Move out Renard configuration as Renne
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'machines/renne/devices.nix')
| -rw-r--r-- | machines/renne/devices.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/machines/renne/devices.nix b/machines/renne/devices.nix new file mode 100644 index 0000000..d952488 --- /dev/null +++ b/machines/renne/devices.nix @@ -0,0 +1,27 @@ +{ config, pkgs, ... }: + +{ + boot.initrd = { + availableKernelModules = [ "virtio_pci" "virtio_scsi" ]; + kernelModules = [ "dm-snapshot" ]; + }; + + boot.loader.grub = { + enable = true; + device = "/dev/sda"; + }; + + zramSwap = { + enable = true; + algorithm = "zstd"; + swapDevices = 1; + memoryPercent = 50; + }; + + systemd.network.networks."10-wan" = { + name = "ens18"; + DHCP = "ipv4"; + address = [ "2a02:c207:2042:1313::1" ]; + routes = [ { Gateway = "fe80::1"; } ]; + }; +} |
