fix cpu detection
This commit is contained in:
parent
139bd596da
commit
5159f69f76
3 changed files with 19 additions and 18 deletions
|
@ -44,13 +44,13 @@ in
|
|||
|
||||
boot = {
|
||||
kernelParams = [
|
||||
"splash"
|
||||
"quiet"
|
||||
"intel_iommu=on"
|
||||
"iommu=force"
|
||||
"pcie_acs_override=downstream"
|
||||
"mmio_stale_data=full,nosmt"
|
||||
"pcie_aspm=off"
|
||||
# "splash"
|
||||
# "quiet"
|
||||
# "intel_iommu=on"
|
||||
# "iommu=force"
|
||||
# "pcie_acs_override=downstream"
|
||||
# "mmio_stale_data=full,nosmt"
|
||||
# "pcie_aspm=off"
|
||||
]; # "vfio-pci.ids=10de:1aeb,10de:2191,10de:1aed,10de:1aec" ];
|
||||
initrd.availableKernelModules = [
|
||||
"xhci_pci"
|
||||
|
@ -73,10 +73,10 @@ in
|
|||
}))
|
||||
];
|
||||
kernelModules = [
|
||||
"kvm-intel"
|
||||
"vfio_pci"
|
||||
"vfio_iommu_type1"
|
||||
"vfio"
|
||||
# "kvm-intel"
|
||||
# "vfio_pci"
|
||||
# "vfio_iommu_type1"
|
||||
# "vfio"
|
||||
"ddcci_backlight"
|
||||
"i2c-dev"
|
||||
];
|
||||
|
|
|
@ -8,10 +8,6 @@
|
|||
|
||||
networking.hostName = "grimmauld-nixos";
|
||||
|
||||
environment.sessionVariables = {
|
||||
OMP_NUM_THREADS = "12";
|
||||
};
|
||||
|
||||
system.stateVersion = "23.05";
|
||||
|
||||
grimmShared.gaming = true;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
# 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, ... }:
|
||||
|
||||
{
|
||||
{ config, lib, pkgs, modulesPath, ... }: let
|
||||
cpus = "12";
|
||||
in {
|
||||
imports =
|
||||
[
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
|
@ -12,6 +12,7 @@
|
|||
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.extraModulePackages = [ ];
|
||||
boot.kernelParams = [ "possible_cpus=${cpus}" ];
|
||||
|
||||
fileSystems."/" =
|
||||
{
|
||||
|
@ -32,6 +33,10 @@
|
|||
size = 48 * 1024;
|
||||
}];
|
||||
|
||||
environment.sessionVariables = {
|
||||
OMP_NUM_THREADS = cpus;
|
||||
};
|
||||
|
||||
grimmShared = {
|
||||
screens = {
|
||||
external = {
|
||||
|
|
Loading…
Reference in a new issue