btw i use 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 + "/installer/scan/not-detected.nix")
15 ];
16
17 boot.initrd.availableKernelModules = [
18 "xhci_pci"
19 "ahci"
20 "nvme"
21 "usb_storage"
22 "usbhid"
23 "sd_mod"
24 "rtsx_pci_sdmmc"
25 ];
26 boot.initrd.kernelModules = [ ];
27 boot.kernelModules = [ "kvm-intel" ];
28 boot.extraModulePackages = [ ];
29
30 fileSystems."/" = {
31 device = "/dev/disk/by-uuid/e306ba0c-da69-47b3-a1e1-51040cbce06c";
32 fsType = "ext4";
33 };
34
35 fileSystems."/boot" = {
36 device = "/dev/disk/by-uuid/6BBB-F21D";
37 fsType = "vfat";
38 options = [
39 "fmask=0022"
40 "dmask=0022"
41 ];
42 };
43
44 swapDevices = [ ];
45
46 # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
47 # (the default) this is the recommended approach. When using systemd-networkd it's
48 # still possible to use this option, but it's recommended to use it in conjunction
49 # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
50 networking.useDHCP = lib.mkDefault true;
51 # networking.interfaces.eno1.useDHCP = lib.mkDefault true;
52 # networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
53
54 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
55 hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
56}