{ config, inputs, lib, this, ... }: with lib; { secrets.wireguard-private-key-varda.file = "${inputs.self}/secrets/wireguard-private-key-varda"; nixfiles.modules = { wireguard = { privateKeyFile = config.secrets.wireguard-private-key-varda.path; client.enable = true; }; games.minecraft.server = { enable = true; memory = "6G"; }; acme.enable = true; }; networking = let interface = "eth0"; in { interfaces.${interface} = { ipv4.addresses = [ { inherit (this.ipv4) address; prefixLength = 22; } ]; ipv6.addresses = [ { inherit (this.ipv6) address; prefixLength = 64; } ]; }; defaultGateway = { inherit interface; address = this.ipv4.gateway; }; defaultGateway6 = { inherit interface; address = this.ipv6.gateway; }; }; boot = { loader = { efi.canTouchEfiVariables = true; systemd-boot = { enable = true; configurationLimit = 10; }; }; initrd.availableKernelModules = ["ata_piix" "sd_mod" "sr_mod" "uhci_hcd" "virtio_pci" "virtio_scsi"]; }; fileSystems = { "/boot" = { device = "/dev/disk/by-uuid/03FD-B6C0"; fsType = "vfat"; }; "/" = { device = "/dev/disk/by-uuid/b07e8273-915a-424c-8c55-cdc2bd482f49"; fsType = "xfs"; options = ["noatime"]; }; }; swapDevices = [ { device = "/swapfile"; size = 4 * 1024; } ]; }