From 8fd2e5188dd2c3d2df2efe4e44ecd5976c9cef54 Mon Sep 17 00:00:00 2001 From: joy Date: Fri, 2 Aug 2024 14:48:04 +0200 Subject: [PATCH] new laptop --- hosts/laptop/hardware.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/hosts/laptop/hardware.nix b/hosts/laptop/hardware.nix index 0b8a044..356fca9 100644 --- a/hosts/laptop/hardware.nix +++ b/hosts/laptop/hardware.nix @@ -8,19 +8,20 @@ [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "sd_mod" ]; + boot.initrd.availableKernelModules = [ "nvme" "ehci_pci" "xhci_pci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; fileSystems."/" = - { device = "/dev/disk/by-uuid/da82e336-4ae6-491e-a68c-2c7ab519635c"; + { device = "/dev/disk/by-uuid/7bc13c8d-91dd-4022-b4a8-624970b94a78"; fsType = "ext4"; }; fileSystems."/boot" = - { device = "/dev/disk/by-uuid/7B53-C0F2"; + { device = "/dev/disk/by-uuid/ABA5-ED78"; fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; }; swapDevices = [ ]; @@ -30,8 +31,9 @@ # still possible to use this option, but it's recommended to use it in conjunction # with explicit per-interface declarations with `networking.interfaces..useDHCP`. networking.useDHCP = lib.mkDefault true; - # networking.interfaces.enp3s0.useDHCP = lib.mkDefault true; - # networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true; + # networking.interfaces.enp2s0f0.useDHCP = lib.mkDefault true; + # networking.interfaces.enp5s0.useDHCP = lib.mkDefault true; + # networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;