hardware-configuration.nix
1 # Do not modify this file! It was generated by ‘nixos-generate-config’ 2 # and may be overwritten by future invocations. Please make changes 3 # to /etc/nixos/configuration.nix instead. 4 { 5 config, 6 lib, 7 pkgs, 8 modulesPath, 9 ... 10 }: 11 12 { 13 imports = [ 14 (modulesPath + "/profiles/qemu-guest.nix") 15 ]; 16 17 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 18 19 hardware = { 20 graphics.enable = true; 21 enableAllFirmware = true; 22 enableRedistributableFirmware = true; 23 }; 24 25 # Enables DHCP on each ethernet and wireless interface. In case of scripted networking 26 # (the default) this is the recommended approach. When using systemd-networkd it's 27 # still possible to use this option, but it's recommended to use it in conjunction 28 # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. 29 networking.useDHCP = lib.mkDefault true; 30 # networking.interfaces.enp1s0.useDHCP = lib.mkDefault true; 31 32 boot = { 33 kernelModules = [ "kvm-amd" ]; 34 extraModulePackages = [ ]; 35 initrd = { 36 availableKernelModules = [ 37 "ahci" 38 "sr_mod" 39 "xhci_pci" 40 "virtio_pci" 41 "virtio_blk" 42 ]; 43 kernelModules = [ ]; 44 }; 45 }; 46 47 fileSystems = { 48 "/boot" = { 49 device = "/dev/disk/by-uuid/76D9-2ABA"; 50 fsType = "vfat"; 51 options = [ 52 "fmask=0077" 53 "dmask=0077" 54 ]; 55 }; 56 57 "/" = { 58 device = "/dev/disk/by-uuid/365b9945-917a-4097-8331-0b9f884224a7"; 59 fsType = "ext4"; 60 }; 61 }; 62 63 swapDevices = [ 64 { device = "/dev/disk/by-uuid/7d052b23-dd62-4ce4-8f26-97c8bfc6a3c4"; } 65 ]; 66 67 }