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 = {
|
boot = {
|
||||||
kernelParams = [
|
kernelParams = [
|
||||||
"splash"
|
# "splash"
|
||||||
"quiet"
|
# "quiet"
|
||||||
"intel_iommu=on"
|
# "intel_iommu=on"
|
||||||
"iommu=force"
|
# "iommu=force"
|
||||||
"pcie_acs_override=downstream"
|
# "pcie_acs_override=downstream"
|
||||||
"mmio_stale_data=full,nosmt"
|
# "mmio_stale_data=full,nosmt"
|
||||||
"pcie_aspm=off"
|
# "pcie_aspm=off"
|
||||||
]; # "vfio-pci.ids=10de:1aeb,10de:2191,10de:1aed,10de:1aec" ];
|
]; # "vfio-pci.ids=10de:1aeb,10de:2191,10de:1aed,10de:1aec" ];
|
||||||
initrd.availableKernelModules = [
|
initrd.availableKernelModules = [
|
||||||
"xhci_pci"
|
"xhci_pci"
|
||||||
|
@ -73,10 +73,10 @@ in
|
||||||
}))
|
}))
|
||||||
];
|
];
|
||||||
kernelModules = [
|
kernelModules = [
|
||||||
"kvm-intel"
|
# "kvm-intel"
|
||||||
"vfio_pci"
|
# "vfio_pci"
|
||||||
"vfio_iommu_type1"
|
# "vfio_iommu_type1"
|
||||||
"vfio"
|
# "vfio"
|
||||||
"ddcci_backlight"
|
"ddcci_backlight"
|
||||||
"i2c-dev"
|
"i2c-dev"
|
||||||
];
|
];
|
||||||
|
|
|
@ -8,10 +8,6 @@
|
||||||
|
|
||||||
networking.hostName = "grimmauld-nixos";
|
networking.hostName = "grimmauld-nixos";
|
||||||
|
|
||||||
environment.sessionVariables = {
|
|
||||||
OMP_NUM_THREADS = "12";
|
|
||||||
};
|
|
||||||
|
|
||||||
system.stateVersion = "23.05";
|
system.stateVersion = "23.05";
|
||||||
|
|
||||||
grimmShared.gaming = true;
|
grimmShared.gaming = true;
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
# and may be overwritten by future invocations. Please make changes
|
# and may be overwritten by future invocations. Please make changes
|
||||||
# to /etc/nixos/configuration.nix instead.
|
# to /etc/nixos/configuration.nix instead.
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
{ config, lib, pkgs, modulesPath, ... }: let
|
||||||
|
cpus = "12";
|
||||||
{
|
in {
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
@ -12,6 +12,7 @@
|
||||||
|
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
boot.kernelParams = [ "possible_cpus=${cpus}" ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{
|
{
|
||||||
|
@ -32,6 +33,10 @@
|
||||||
size = 48 * 1024;
|
size = 48 * 1024;
|
||||||
}];
|
}];
|
||||||
|
|
||||||
|
environment.sessionVariables = {
|
||||||
|
OMP_NUM_THREADS = cpus;
|
||||||
|
};
|
||||||
|
|
||||||
grimmShared = {
|
grimmShared = {
|
||||||
screens = {
|
screens = {
|
||||||
external = {
|
external = {
|
||||||
|
|
Loading…
Reference in a new issue