diff options
| author | polwex <polwex@sortug.com> | 2025-10-22 14:02:16 +0700 |
|---|---|---|
| committer | polwex <polwex@sortug.com> | 2025-10-22 14:02:16 +0700 |
| commit | 21adca7e6d8f8233ac8d6c00c7be43dc026e8cc5 (patch) | |
| tree | 1fffcd2c077af786ec4f28f1109a5d426295a398 /hosts/local/fw11/hardware-configuration.nix | |
| parent | 4bb8dd864cf5077018327d6f55058b87def03d45 (diff) | |
| parent | f11a2b69c2fb5ef6111af107deba37114f7ab2ff (diff) | |
Merge branch 'fw'
Diffstat (limited to 'hosts/local/fw11/hardware-configuration.nix')
| -rw-r--r-- | hosts/local/fw11/hardware-configuration.nix | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/hosts/local/fw11/hardware-configuration.nix b/hosts/local/fw11/hardware-configuration.nix index 359ff8f..049c395 100644 --- a/hosts/local/fw11/hardware-configuration.nix +++ b/hosts/local/fw11/hardware-configuration.nix @@ -8,11 +8,10 @@ [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ]; - boot.initrd.kernelModules = [ "i915" "8821cu"]; + boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usbhid" ]; + boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ config.boot.kernelPackages.rtl8821cu ]; - # to modeswitch usb dongle sudo usb_modeswitch -KW -v 0bda -p 1a2b + boot.extraModulePackages = [ ]; fileSystems."/" = { device = "/dev/disk/by-uuid/176785ba-cd35-4d09-b7df-37e8b9843c33"; @@ -22,19 +21,13 @@ fileSystems."/boot" = { device = "/dev/disk/by-uuid/043D-21E3"; fsType = "vfat"; - options = ["fmask=0077" "dmask=0077"]; + options = [ "fmask=0077" "dmask=0077" ]; }; swapDevices = - [ + [ { device = "/dev/disk/by-uuid/643ac019-fac1-4dad-84d9-e50380baff2b"; } ]; - # The global useDHCP flag is deprecated, therefore explicitly set to false here. - # Per-interface useDHCP will be mandatory in the future, so this generated config - # replicates the default behaviour. - networking.useDHCP = lib.mkDefault false; - networking.interfaces.wlp170s0.useDHCP = lib.mkDefault true; - - powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; } |
