miki: enable nvidia gpu drivers
This commit is contained in:
parent
0e85f91790
commit
54f0b1d7e1
1 changed files with 7 additions and 5 deletions
|
|
@ -6,11 +6,13 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "miki";
|
networking.hostName = "miki";
|
||||||
|
|
||||||
|
# gpu drivers
|
||||||
hardware.graphics.enable = true;
|
hardware.graphics.enable = true;
|
||||||
|
services.xserver.videoDrivers = [ "nvidia" ];
|
||||||
|
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.legacy_470;
|
||||||
|
hardware.nvidia.open = false;
|
||||||
|
|
||||||
# game servers
|
nixpkgs.config.allowUnfree = true;
|
||||||
services.minecraft-servers.servers.velocity.enable = lib.mkForce false;
|
nixpkgs.config.nvidia.acceptLicense = true;
|
||||||
virtualisation.oci-containers.containers.neoforge-1-21-1.ports = [ "25565:25565" ];
|
|
||||||
virtualisation.oci-containers.containers.neoforge-1-21-1.environment.SERVER_PORT = lib.mkForce "25565";
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue