{ lib, modulesPath, ... }: { imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; boot = { kernelParams = [ "ip=86.106.183.111/26::86.106.183.65::nazuna" ]; initrd = { availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; kernelModules = [ "dm-snapshot" ]; network.enable = true; # remote unlocking luks.devices."root".device = "/dev/disk/by-uuid/b20be409-adb6-47fc-ba9b-c07e61503070"; }; loader = { grub.enable = false; systemd-boot.enable = true; efi.canTouchEfiVariables = true; }; }; fileSystems = { "/" = { device = "/dev/disk/by-uuid/05b0918e-3c24-45bf-950e-4af9d89d3be2"; fsType = "btrfs"; options = [ "compress=zstd" ]; }; "/boot" = { device = "/dev/disk/by-uuid/0CBC-D947"; fsType = "vfat"; }; }; swapDevices = [ { device = "/dev/disk/by-partuuid/08140a4b-38d7-4af3-b302-ccc952b085eb"; randomEncryption.enable = true; } ]; networking = { useDHCP = false; usePredictableInterfaceNames = false; }; systemd.network = { enable = true; networks = { eth0 = { name = "eth0"; DHCP = "yes"; domains = [ "sbruder.de" ]; address = [ "86.106.183.111/26" "2a0d:f302:123:8d61::1/64" ]; gateway = [ "86.106.183.65" "2a0d:f302:123::1" ]; }; }; }; # no smart on qemu disk services.smartd.enable = false; }