{ lib, this, ... }: with lib; { imports = attrValues (modulesIn ./.); nixfiles.modules = { wireguard.client.enable = true; wireguard-ng.server.enable = true; unbound-ng.enable = true; unbound-ng.domain = "shire.local"; }; services.qemuGuest.enable = true; systemd.network.networks."40-eth0" = { addresses = [ { Address = this.ipv4.address; Broadcast = true; } ]; routes = [ { Gateway = this.ipv4.gatewayAddress; GatewayOnLink = true; } ]; }; boot.loader.systemd-boot.enable = true; disko.devices.disk.vda = { device = "/dev/vda"; type = "disk"; content = { type = "gpt"; partitions = { esp = { name = "ESP"; type = "EF00"; size = "512M"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; }; }; root = { size = "100%"; content = { type = "filesystem"; format = "xfs"; mountpoint = "/"; mountOptions = [ "noatime" ]; }; }; }; }; }; zramSwap = { enable = true; memoryPercent = 50; }; }