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";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
services.openssh.enable = true;
|
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 = {
|
networking = {
|
||||||
hostName = "nova";
|
hostName = "nova";
|
||||||
search = ["wolfgirl.systems"];
|
search = ["wolfgirl.systems"];
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
let
|
let
|
||||||
pkgs = import ./nixpkgs {};
|
pkgs = import ./nixpkgs {
|
||||||
|
config = {
|
||||||
|
allowUnfreePredicate = pkg: true;
|
||||||
|
};
|
||||||
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
network = {
|
network = {
|
||||||
|
|
Loading…
Reference in a new issue