From 411b95133224998f6863b6fa9818227ee1c31ca0 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Wed, 5 Mar 2025 11:53:51 +0100 Subject: [PATCH] change hardware-configuration Former-commit-id: 2ec4583391b90e9ffa7ae617a4e3fef1f95ba405 --- hosts/laptop/hardware-configuration.nix | 39 +++++++++++++------------ 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/hosts/laptop/hardware-configuration.nix b/hosts/laptop/hardware-configuration.nix index 93b95c2..7ab31ca 100644 --- a/hosts/laptop/hardware-configuration.nix +++ b/hosts/laptop/hardware-configuration.nix @@ -1,26 +1,28 @@ # Do not modify this file! It was generated by ‘nixos-generate-config’ # and may be overwritten by future invocations. Please make changes # to /etc/nixos/configuration.nix instead. -{ config, lib, pkgs, modulesPath, ... }: { - imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; +{ config, lib, pkgs, modulesPath, ... }: - boot = { - initrd.availableKernelModules = - [ "nvme" "xhci_pci" "usb_storage" "sd_mod" ]; - initrd.kernelModules = [ ]; - kernelModules = [ "kvm-amd" ]; - extraModulePackages = [ ]; - }; +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; - fileSystems."/" = { - device = "/dev/disk/by-uuid/6c2487ec-20ff-4ce3-9396-281c2094aba1"; - fsType = "ext4"; - }; + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; - fileSystems."/boot" = { - device = "/dev/disk/by-uuid/B4EA-C54F"; - fsType = "vfat"; - }; + fileSystems."/" = + { device = "/dev/disk/by-uuid/4c1fd50c-ad7d-4653-b120-c5b0bfacac38"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/DBF1-ED2E"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; swapDevices = [ ]; @@ -33,6 +35,5 @@ # networking.interfaces.wlo1.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - hardware.cpu.amd.updateMicrocode = - lib.mkDefault config.hardware.enableRedistributableFirmware; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; }