Johan Rong hai 1 mes
pai
achega
2d1b827f35
Modificáronse 2 ficheiros con 46 adicións e 1 borrados
  1. 1 1
      hosts/ideapad/configuration.nix
  2. 45 0
      hosts/ideapad/hardware.nix

+ 1 - 1
hosts/ideapad/configuration.nix

@@ -21,7 +21,7 @@ in
   ];
 
   boot.kernelParams = [
-    "resume=UUID=b0e53493-71b7-4adc-bc9a-37c16ed9672b"
+    "resume=UUID=79e1dbf5-5469-466b-bf3f-7de192644f09"
   ];
 
   nixpkgs.config.allowUnfree = true;

+ 45 - 0
hosts/ideapad/hardware.nix

@@ -0,0 +1,45 @@
+# 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")
+    ];
+
+  boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "sdhci_pci" ];
+  boot.initrd.kernelModules = [ ];
+  boot.kernelModules = [ "kvm-intel" ];
+  boot.extraModulePackages = [ ];
+
+  fileSystems."/" =
+    { device = "/dev/disk/by-uuid/b383ef34-9235-4445-aa92-7addbad0f947";
+      fsType = "btrfs";
+    };
+
+  fileSystems."/home" =
+    { device = "/dev/disk/by-uuid/b383ef34-9235-4445-aa92-7addbad0f947";
+      fsType = "btrfs";
+      options = [ "subvol=home" ];
+    };
+
+  fileSystems."/nix" =
+    { device = "/dev/disk/by-uuid/b383ef34-9235-4445-aa92-7addbad0f947";
+      fsType = "btrfs";
+      options = [ "subvol=nix" ];
+    };
+
+  fileSystems."/boot" =
+    { device = "/dev/disk/by-uuid/0F10-BDE7";
+      fsType = "vfat";
+      options = [ "fmask=0077" "dmask=0077" ];
+    };
+
+  swapDevices =
+    [ { device = "/dev/disk/by-uuid/79e1dbf5-5469-466b-bf3f-7de192644f09"; }
+    ];
+
+  nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+  hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
+}