enable gpu on nova

This commit is contained in:
Ezri Zhu 2024-09-30 00:12:30 -04:00
parent 50fbf81904
commit 225dd38bee
Signed by: ezri
SSH key fingerprint: SHA256:PjS2hKMfl3gJ5Furjjq+kXa4ZvS1c0gb4/djAxxAf6c
2 changed files with 14 additions and 1 deletions

View file

@ -24,6 +24,15 @@
i18n.defaultLocale = "en_US.UTF-8";
services.openssh.enable = true;
services.xserver.videoDrivers = [ "nvidia" ];
hardware.graphics.enable = true;
hardware.nvidia = {
modesetting.enable = true;
nvidiaPersistenced = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
open = false;
};
networking = {
hostName = "nova";
search = ["wolfgirl.systems"];

View file

@ -1,5 +1,9 @@
let
pkgs = import ./nixpkgs {};
pkgs = import ./nixpkgs {
config = {
allowUnfreePredicate = pkg: true;
};
};
in
{
network = {