machine(Tytonidae): Refactor hardware configuration
This commit is contained in:
parent
c196ad8e20
commit
8a6d134a2c
2 changed files with 19 additions and 29 deletions
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
lib,
|
|
||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
|
|
@ -104,16 +103,6 @@
|
||||||
loader.efi.canTouchEfiVariables = true;
|
loader.efi.canTouchEfiVariables = true;
|
||||||
initrd.systemd.enable = true;
|
initrd.systemd.enable = true;
|
||||||
};
|
};
|
||||||
hardware.nvidia = {
|
|
||||||
modesetting.enable = true;
|
|
||||||
open = true;
|
|
||||||
prime = {
|
|
||||||
reverseSync.enable = lib.mkDefault true;
|
|
||||||
intelBusId = "PCI:0:2:0";
|
|
||||||
nvidiaBusId = "PCI:1:0:0";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
nix = {settings = {system-features = ["gccarch-alderlake"];};};
|
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
|
|
|
||||||
|
|
@ -1,27 +1,28 @@
|
||||||
{pkgs, ...}: {
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
nixpkgs.config.cudaSupport = true;
|
nixpkgs.config.cudaSupport = true;
|
||||||
services = {
|
services = {
|
||||||
hardware.bolt.enable = true;
|
hardware.bolt.enable = true;
|
||||||
fstrim.enable = true;
|
fstrim.enable = true;
|
||||||
};
|
};
|
||||||
|
nix = {settings = {system-features = ["gccarch-alderlake"];};};
|
||||||
hardware = {
|
hardware = {
|
||||||
graphics = {
|
graphics.package = pkgs.mesa_git;
|
||||||
extraPackages = with pkgs; [
|
intelgpu = {
|
||||||
vaapiIntel
|
driver = "xe";
|
||||||
libva
|
vaapiDriver = "intel-media-driver";
|
||||||
libvdpau-va-gl
|
};
|
||||||
vaapiVdpau
|
nvidia = {
|
||||||
ocl-icd
|
modesetting.enable = true;
|
||||||
intel-ocl
|
open = true;
|
||||||
intel-compute-runtime
|
prime = {
|
||||||
nvidia-vaapi-driver
|
reverseSync.enable = lib.mkDefault true;
|
||||||
intel-media-driver
|
intelBusId = "PCI:0:2:0";
|
||||||
];
|
nvidiaBusId = "PCI:1:0:0";
|
||||||
extraPackages32 = with pkgs.pkgsi686Linux; [
|
};
|
||||||
vaapiVdpau
|
|
||||||
libvdpau-va-gl
|
|
||||||
intel-media-driver
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue