enable gpu on nova
This commit is contained in:
parent
50fbf81904
commit
225dd38bee
2 changed files with 14 additions and 1 deletions
|
@ -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"];
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
let
|
||||
pkgs = import ./nixpkgs {};
|
||||
pkgs = import ./nixpkgs {
|
||||
config = {
|
||||
allowUnfreePredicate = pkg: true;
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
network = {
|
||||
|
|
Loading…
Reference in a new issue