laptop: enable removable boot

This commit is contained in:
Lgmrszd 2025-02-23 15:37:57 +04:00
parent 6752f29b5e
commit 3386acbc11
No known key found for this signature in database
GPG key ID: 9396B8BA6FBB14DE
2 changed files with 8 additions and 8 deletions

View file

@ -13,7 +13,7 @@ in
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "ahci" "nvme" "usbhid" "uas" "usb_storage" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
@ -37,8 +37,9 @@ in
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/12CE-A600";
{ device = "/dev/disk/by-uuid/E095-34D8";
fsType = "vfat";
options = [ "noauto" ];
};
swapDevices =
@ -50,10 +51,7 @@ in
# 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.enp4s0f1.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}