me like 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{ config, lib, pkgs, modulesPath, ... }:
5
6{
7 imports =
8 [ (modulesPath + "/installer/scan/not-detected.nix")
9 ];
10
11 boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
12 boot.initrd.kernelModules = [ ];
13 boot.kernelModules = [ "kvm-intel" ];
14 boot.extraModulePackages = [ ];
15
16 fileSystems."/" =
17 { device = "/dev/disk/by-uuid/e51cb271-90b6-49ae-89aa-491b17e59d97";
18 fsType = "ext4";
19 };
20
21 fileSystems."/boot" =
22 { device = "/dev/disk/by-uuid/0089-74FA";
23 fsType = "vfat";
24 options = [ "fmask=0077" "dmask=0077" ];
25 };
26
27 swapDevices = [ ];
28
29 hardware.system76.kernel-modules.enable = true;
30 hardware.system76.enableAll = true;
31 hardware.graphics = {
32 enable = true;
33 enable32Bit = true; # crucial for many steam games
34 };
35
36 # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
37 # (the default) this is the recommended approach. When using systemd-networkd it's
38 # still possible to use this option, but it's recommended to use it in conjunction
39 # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
40 networking.useDHCP = lib.mkDefault true;
41 # networking.interfaces.enp0s20f0u4u3.useDHCP = lib.mkDefault true;
42 # networking.interfaces.enp3s0.useDHCP = lib.mkDefault true;
43 # networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
44
45 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
46 hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
47}