Personal-use NixOS configuration
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 "nvme"
18 "xhci_pci"
19 "ahci"
20 "usbhid"
21 "usb_storage"
22 "sd_mod"
23 ];
24 boot.initrd.kernelModules = [ ];
25 boot.kernelModules = [ ];
26 boot.extraModulePackages = [ ];
27
28 # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
29 # (the default) this is the recommended approach. When using systemd-networkd it's
30 # still possible to use this option, but it's recommended to use it in conjunction
31 # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
32 networking.useDHCP = lib.mkDefault true;
33 # networking.interfaces.enp5s0.useDHCP = lib.mkDefault true;
34 # networking.interfaces.wlp7s0.useDHCP = lib.mkDefault true;
35
36 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
37 hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
38}