This commit is contained in:
Henri Dohmen 2025-05-26 01:08:54 +02:00
parent dbd88aea66
commit 8fbd9d06b4
29 changed files with 130 additions and 101 deletions

View file

@ -1,12 +1,8 @@
{ mod, ... }:
{ lib', ... }:
{
networking.hostName = "solo";
imports = with mod; [
software.keyboard
nvidia-gpu
./hardware-configuration.nix
];
imports = lib'.import-recursive ./.;
powerManagement = {
enable = true;

6
host/solo/keyboard.nix Normal file
View file

@ -0,0 +1,6 @@
{ pkgs, ... }:
{
# hardware.keyboard.qmk.enable = true;
environment.systemPackages = with pkgs; [ vial ];
services.udev.packages = with pkgs; [ vial ];
}

27
host/solo/nvidia-gpu.nix Normal file
View file

@ -0,0 +1,27 @@
{ config, ... }:
{
services.xserver.videoDrivers = [ "nvidia" ];
hardware.graphics = {
enable = true;
enable32Bit = true;
};
hardware.nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.stable;
modesetting.enable = true;
nvidiaSettings = true;
open = false;
powerManagement = {
enable = true;
finegrained = false;
};
};
boot.kernelParams = [
"nvidia-drm.fbdev=1"
"nvidia-drm.modeset=1"
];
}