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{
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 "usbhid"
22 "usb_storage"
23 "sd_mod"
24 ];
25 boot.initrd.kernelModules = [ ];
26 boot.kernelModules = [ "kvm-intel" ];
27 boot.extraModulePackages = [ ];
28
29 fileSystems."/" = {
30 device = "/dev/disk/by-uuid/e51cb271-90b6-49ae-89aa-491b17e59d97";
31 fsType = "ext4";
32 };
33
34 fileSystems."/boot" = {
35 device = "/dev/disk/by-uuid/0089-74FA";
36 fsType = "vfat";
37 options = [
38 "fmask=0077"
39 "dmask=0077"
40 ];
41 };
42
43 swapDevices = [ ];
44
45 hardware.system76.kernel-modules.enable = true;
46 hardware.system76.enableAll = true;
47 hardware.graphics = {
48 enable = true;
49 enable32Bit = true; # crucial for many steam games
50 };
51 hardware.keyboard.zsa.enable = true;
52
53 # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
54 # (the default) this is the recommended approach. When using systemd-networkd it's
55 # still possible to use this option, but it's recommended to use it in conjunction
56 # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
57 networking.useDHCP = lib.mkDefault true;
58 # networking.interfaces.enp0s20f0u4u3.useDHCP = lib.mkDefault true;
59 # networking.interfaces.enp3s0.useDHCP = lib.mkDefault true;
60 # networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
61
62 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
63 hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
64}