Merge hardware.nix

This commit is contained in:
monologiq 2025-12-24 16:10:21 +01:00
parent 7ff397a7c0
commit 95c39f896c
6 changed files with 36 additions and 55 deletions

View file

@ -9,18 +9,24 @@
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
./persephone/hardware.nix
./persephone/networking.nix
../profiles/minimal.linux.nix
../profiles/desktop.linux.nix
];
boot = {
blacklistedKernelModules = [
"spd5118"
];
extraModulePackages = [ ];
kernelModules = [ "kvm-intel" ];
kernelModules = [
"i2c-dev"
"kvm-intel"
];
kernelPackages = pkgs.linuxPackages_6_17;
kernelParams = [ "i915.enable_guc=3" ];
};
boot.initrd.availableKernelModules = [
"xhci_pci"
"thunderbolt"
@ -34,7 +40,7 @@
keyMap = "us";
font = "${pkgs.terminus_font}/share/consolefonts/ter-v28b.psf.gz";
};
i18n.defaultLocale = "en_US.UTF-8";
hardware.enableRedistributableFirmware = true;
@ -48,6 +54,8 @@
];
};
hardware.i2c.enable = true;
hardware.nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.stable;
open = true;
@ -109,6 +117,11 @@
VDPAU_DRIVER = "va_gl";
};
environment.systemPackages = with pkgs; [
i2c-tools
lm_sensors
];
nix.settings = {
substituters = [ "https://cache.nixos-cuda.org" ];
trusted-public-keys = [ "cache.nixos-cuda.org:74DUi4Ye579gUqzH4ziL9IyiJBlDpMRn9MBN8oNan9M=" ];
@ -125,7 +138,13 @@
programs._1password.enable = true;
services.hardware.openrgb = {
enable = true;
startupProfile = "off";
};
services.pipewire.enable = true;
services.udev.packages = [ pkgs.openrgb ];
services.xserver.videoDrivers = [
"modesetting"