at master 1.4 kB view raw
1{ 2 config, 3 lib, 4 pkgs, 5 modulesPath, 6 ... 7}: 8 9{ 10 imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; 11 12 boot.initrd.availableKernelModules = [ 13 "xhci_pci" 14 "ehci_pci" 15 "ahci" 16 "usbhid" 17 "sd_mod" 18 ]; 19 boot.initrd.kernelModules = [ ]; 20 # kvm for virtualisation, wl for broadcom_sta kernel module 21 boot.kernelModules = [ 22 "kvm-intel" 23 "wl" 24 ]; 25 boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ]; 26 # loading bcma/b43 at the same time as wl seems to cause issues 27 boot.blacklistedKernelModules = [ 28 "bcma" 29 "b43" 30 ]; 31 32 fileSystems."/" = { 33 device = "/dev/disk/by-uuid/d2afdf21-7a3a-47f0-83e1-31e9cccdad84"; 34 fsType = "ext4"; 35 }; 36 37 fileSystems."/boot" = { 38 device = "/dev/disk/by-uuid/2DD6-69F0"; 39 fsType = "vfat"; 40 }; 41 42 fileSystems."/media/hdd" = { 43 device = "/dev/disk/by-label/HDD"; 44 options = [ 45 "nofail" 46 "x-systemd.device-timeout=1ms" 47 "x-systemd.automount" 48 "x-systemd.idle-timeout=10min" 49 ]; 50 }; 51 52 swapDevices = [ 53 { 54 device = "/swapfile"; 55 size = 8192; 56 } 57 ]; 58 59 networking.useDHCP = lib.mkDefault true; 60 61 hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 62 # high-resolution display 63 # hardware.video.hidpi.enable = lib.mkDefault true; 64 65 nixpkgs.hostPlatform = "x86_64-linux"; 66}