at master 752 B view raw
1{ modulesPath, ... }: 2 3{ 4 imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; 5 boot.loader.grub.device = "/dev/sda"; 6 boot.initrd.availableKernelModules = [ 7 "ata_piix" 8 "uhci_hcd" 9 "xen_blkfront" 10 "vmw_pvscsi" 11 ]; 12 boot.initrd.kernelModules = [ "nvme" ]; 13 14 fileSystems."/" = { 15 device = "/dev/sda1"; 16 fsType = "ext4"; 17 }; 18 19 swapDevices = [ 20 { 21 device = "/var/swap"; 22 size = 4096; 23 } 24 ]; 25 26 networking = { 27 interfaces."enp1s0" = { 28 ipv6.addresses = [ 29 { 30 address = "2a01:4f9:c011:87ad::"; 31 prefixLength = 64; 32 } 33 ]; 34 }; 35 defaultGateway6 = { 36 address = "fe80::1"; 37 interface = "enp1s0"; 38 }; 39 }; 40 41 nixpkgs.hostPlatform = "x86_64-linux"; 42}