From 7f1dde8e06571bdfd0aa5ef9b606416062f96f35 Mon Sep 17 00:00:00 2001 From: Odweta Date: Mon, 19 Jan 2026 14:54:57 +0000 Subject: [PATCH] update hardware-configuration.nix --- hosts/flippad/hardware-configuration.nix | 10 +++---- hosts/thiccpad/hardware-configuration.nix | 36 +++++++++++++++++++++++ 2 files changed, 41 insertions(+), 5 deletions(-) diff --git a/hosts/flippad/hardware-configuration.nix b/hosts/flippad/hardware-configuration.nix index 91dcca1..3f7ca01 100644 --- a/hosts/flippad/hardware-configuration.nix +++ b/hosts/flippad/hardware-configuration.nix @@ -8,7 +8,7 @@ [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "rtsx_pci_sdmmc" ]; + boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "uas" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; boot.initrd.kernelModules = [ "fuse" ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; @@ -17,16 +17,16 @@ ''; fileSystems."/" = - { device = "/dev/mapper/luks-92ca99f5-755f-4b98-b20f-ef9264f854fa"; + { device = "/dev/mapper/cryptroot"; fsType = "ext4"; }; - boot.initrd.luks.devices."luks-92ca99f5-755f-4b98-b20f-ef9264f854fa".device = "/dev/disk/by-uuid/92ca99f5-755f-4b98-b20f-ef9264f854fa"; + boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/eeefc2ad-d615-469e-80d5-e14c238116f5"; fileSystems."/boot" = - { device = "/dev/disk/by-uuid/5C09-A76A"; + { device = "/dev/disk/by-uuid/2F02-3D7D"; fsType = "vfat"; - options = [ "fmask=0077" "dmask=0077" ]; + options = [ "fmask=0022" "dmask=0022" ]; }; swapDevices = [ ]; diff --git a/hosts/thiccpad/hardware-configuration.nix b/hosts/thiccpad/hardware-configuration.nix index e69de29..3f7ca01 100644 --- a/hosts/thiccpad/hardware-configuration.nix +++ b/hosts/thiccpad/hardware-configuration.nix @@ -0,0 +1,36 @@ +# 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" "nvme" "uas" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; + boot.initrd.kernelModules = [ "fuse" ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + boot.extraModprobeConfig = '' + options fuse index=max + ''; + + fileSystems."/" = + { device = "/dev/mapper/cryptroot"; + fsType = "ext4"; + }; + + boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/eeefc2ad-d615-469e-80d5-e14c238116f5"; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/2F02-3D7D"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}