yep, more dotfiles
1{ config 2, lib 3, ... 4}: 5 6{ 7 config = { 8 system.stateVersion = "23.05"; 9 10 # --- Generated by `nixos-generate-config` --- 11 boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "sd_mod" "rtsx_pci_sdmmc" ]; 12 boot.initrd.kernelModules = [ ]; 13 boot.kernelModules = [ "kvm-intel" ]; 14 boot.extraModulePackages = [ ]; 15 16 fileSystems."/" = { 17 device = "/dev/disk/by-uuid/c3e74034-2dc2-4462-a4f1-82fc5f8e7daf"; 18 fsType = "ext4"; 19 }; 20 21 fileSystems."/boot" = { 22 device = "/dev/disk/by-uuid/A18B-9B1D"; 23 fsType = "vfat"; 24 }; 25 26 swapDevices = [ 27 { device = "/dev/disk/by-uuid/6206464f-5261-404c-b2f5-dbb450d30550"; } 28 ]; 29 30 # Enables DHCP on each ethernet and wireless interface. In case of scripted networking 31 # (the default) this is the recommended approach. When using systemd-networkd it's 32 # still possible to use this option, but it's recommended to use it in conjunction 33 # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. 34 networking.useDHCP = lib.mkDefault true; 35 # networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true; 36 # networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true; 37 38 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 39 powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; 40 hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 41 42 # Replaces `<modules>/installer/scan/not-detected.nix` import 43 hardware.enableRedistributableFirmware = lib.mkDefault true; 44 }; 45}