Kieran's opinionated (and probably slightly dumb) nix config
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 modulesPath,
8 ...
9}:
10
11{
12 imports = [
13 (modulesPath + "/installer/scan/not-detected.nix")
14 ];
15
16 boot.initrd.availableKernelModules = [
17 "xhci_pci"
18 "thunderbolt"
19 "nvme"
20 "usb_storage"
21 "sd_mod"
22 ];
23 boot.initrd.kernelModules = [ ];
24 boot.kernelModules = [ "kvm-intel" ];
25 boot.extraModulePackages = [ ];
26
27 # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
28 # (the default) this is the recommended approach. When using systemd-networkd it's
29 # still possible to use this option, but it's recommended to use it in conjunction
30 # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
31 networking.useDHCP = lib.mkDefault true;
32 # networking.interfaces.wlp170s0.useDHCP = lib.mkDefault true;
33
34 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
35 hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
36}