This commit is contained in:
Elias Gasparis 2025-06-02 21:14:01 +08:00
parent 98f309e72a
commit 8a32e2f31b
16 changed files with 645 additions and 271 deletions

22
mods/gpu.nix Normal file
View file

@ -0,0 +1,22 @@
{ config, pkgs, lib, ... }:
{
# add comments back in later from forgejo
nixpkgs.config.allowUnfree = true;
nixpkgs.config.nvidia.acceptLicense = true;
hardware.graphics.enable = true;
services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = false;
open = false;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.legacy_340;
};
}