new nvidia drivers!

This commit is contained in:
insert 2024-05-21 20:47:56 -04:00
parent c3df72be4d
commit 5df4389390
Signed by: insert
GPG key ID: A70775C389ACF105
2 changed files with 11 additions and 10 deletions

View file

@ -2,6 +2,7 @@
inputs = {
# ...
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nvidia-beta.url = "github:NixOS/nixpkgs/d5c3f1ef368b44fa63ff2a5b79578b9acbbb40db";
flatpaks.url = "github:GermanBread/declarative-flatpak/dev";
flatpaks.inputs.nixpkgs.follows = "nixpkgs";
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";

View file

@ -3,15 +3,15 @@
environment.etc.nixpkgs.source = inputs.nixpkgs;
networking.hostName = "insertpclinux";
services.xserver.videoDrivers = ["nvidia"];
#nixpkgs.overlays = [ (self: super: (let
# patched_pkgs = import inputs.nixpkgs_patched {
# inherit (self) system;
# config.allowUnfree = true;
# };
# in {
# linuxPackages = patched_pkgs.linuxPackages;
# })) ];
#boot.kernelPackages = pkgs.linuxPackages;
nixpkgs.overlays = [ (self: super: (let
patched_pkgs = import inputs.nvidia-beta {
inherit (self) system;
config.allowUnfree = true;
};
in {
linuxPackages = patched_pkgs.linuxPackages;
})) ];
boot.kernelPackages = pkgs.linuxPackages;
services.sunshine = {
enable = true;
@ -41,7 +41,7 @@
# Optionally, you may need to select the appropriate driver version for your specific GPU.
package = config.boot.kernelPackages.nvidiaPackages.production;
package = config.boot.kernelPackages.nvidiaPackages.beta;
};