fixed up things

This commit is contained in:
maya 2026-02-21 18:48:43 +08:00
parent 8358dd883e
commit aaf473a012
Signed by: maya
SSH key fingerprint: SHA256:Im2Y1O7zWsr6fcIXLTGk3tHCels6Ptm2pE3svwm5m/0
4 changed files with 102 additions and 0 deletions

View file

@ -0,0 +1,37 @@
# 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 = [ "ehci_pci" "ahci" "xhci_pci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.blacklistedKernelModules = [ "bcma" "b43" "ssb" "brcmsmac" ];
boot.kernelParams = [ "radeon.si_support=0" "amdgpu.si_support=1" ];
services.mbpfan = {
enable = true;
settings.general.max_temp = 70;
settings.general.high_temp = 55;
settings.general.low_temp = 50;
};
fileSystems."/" =
{ device = "/dev/disk/by-uuid/f5f5207a-bade-4201-baf6-19898093c459";
fsType = "xfs";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/4FB9-0D14";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}