diff options
| author | spl3g <spleefer6@yandex.ru> | 2025-09-02 23:02:30 +0300 |
|---|---|---|
| committer | spl3g <spleefer6@yandex.ru> | 2025-09-02 23:02:30 +0300 |
| commit | 604ed72596c2f9a37bc7aef63e77d6783583ec49 (patch) | |
| tree | c2dafad1e167ddf10d195acf54011c20d353c61f | |
| parent | a528866b13391403fa916504f8274c51dcc63ecf (diff) | |
feat: update laptop hardware configuration
| -rw-r--r-- | nixos/laptop/hardware-configuration.nix | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/nixos/laptop/hardware-configuration.nix b/nixos/laptop/hardware-configuration.nix index 8426f67..3e2957e 100644 --- a/nixos/laptop/hardware-configuration.nix +++ b/nixos/laptop/hardware-configuration.nix @@ -8,32 +8,18 @@ [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" ]; + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" "sdhci_pci" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; - fileSystems."/" = - { device = "/dev/disk/by-uuid/f42dd8ca-f644-462f-a804-1e41d3a56d54"; - fsType = "ext4"; - }; - - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/76AA-EF6D"; - fsType = "vfat"; - }; - - swapDevices = - [ { device = "/dev/disk/by-uuid/c3522ec8-ded5-475f-a02f-8484f4a23b39"; } - ]; - # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's # still possible to use this option, but it's recommended to use it in conjunction # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. networking.useDHCP = lib.mkDefault true; - # networking.interfaces.enp1s0.useDHCP = lib.mkDefault true; - networking.interfaces.wlp2s0.useDHCP = lib.mkDefault true; + # networking.interfaces.enp2s0.useDHCP = lib.mkDefault true; + # networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; |
