me like nix
0

Configure Feed

Select the types of activity you want to include in your feed.

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 "xhci_pci" 18 "ahci" 19 "nvme" 20 "usbhid" 21 "usb_storage" 22 "sd_mod" 23 ]; 24 boot.initrd.kernelModules = [ ]; 25 boot.kernelModules = [ "kvm-intel" ]; 26 boot.extraModulePackages = [ ]; 27 # Prevent xe driver from loading alongside i915 (causes DRM page flip EBUSY errors) 28 boot.blacklistedKernelModules = [ "xe" ]; 29 # Enable GuC submission + HuC for proper Alder Lake GPU scheduling 30 boot.kernelParams = [ "i915.enable_guc=3" ]; 31 32 fileSystems."/" = { 33 device = "/dev/disk/by-uuid/e51cb271-90b6-49ae-89aa-491b17e59d97"; 34 fsType = "ext4"; 35 }; 36 37 fileSystems."/boot" = { 38 device = "/dev/disk/by-uuid/0089-74FA"; 39 fsType = "vfat"; 40 options = [ 41 "fmask=0077" 42 "dmask=0077" 43 ]; 44 }; 45 fileSystems."/mnt/storage1" = { 46 device = "/dev/disk/by-uuid/3bb5c3d3-f3ce-4c54-a86c-589b477eda20"; 47 fsType = "ext4"; 48 # reduce write ops 49 options = [ "noatime" ]; 50 }; 51 fileSystems."/mnt/storage2" = { 52 device = "/dev/disk/by-uuid/40b9cab0-9f25-4b36-9f22-6ebea1fe6e7a"; 53 fsType = "ext4"; 54 # reduce write ops 55 options = [ "noatime" ]; 56 }; 57 58 systemd.tmpfiles.rules = [ 59 "d /mnt/storage1 0755 sean users -" 60 "d /mnt/storage2 0755 sean users -" 61 ]; 62 63 swapDevices = [ ]; 64 65 hardware.system76.kernel-modules.enable = true; 66 hardware.system76.enableAll = true; 67 hardware.graphics = { 68 enable = true; 69 enable32Bit = true; # crucial for many steam games 70 }; 71 hardware.keyboard.zsa.enable = true; 72 73 # Enables DHCP on each ethernet and wireless interface. In case of scripted networking 74 # (the default) this is the recommended approach. When using systemd-networkd it's 75 # still possible to use this option, but it's recommended to use it in conjunction 76 # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. 77 networking.useDHCP = lib.mkDefault true; 78 # networking.interfaces.enp0s20f0u4u3.useDHCP = lib.mkDefault true; 79 # networking.interfaces.enp3s0.useDHCP = lib.mkDefault true; 80 # networking.interfaces.wlo1.useDHCP = lib.mkDefault true; 81 82 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 83 hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 84}