fix nvidia driver version for wayland (use unstable)
This commit is contained in:
parent
175f67e377
commit
76cf402e52
2 changed files with 15 additions and 6 deletions
|
|
@ -9,8 +9,13 @@
|
|||
|
||||
outputs = { nixpkgs, nixos-hardware, nixpkgs-unstable, ... }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
overlay-unstable = final: prev: {
|
||||
unstable = nixpkgs-unstable.legacyPackages.x86_64-linux;
|
||||
# unstable = nixpkgs-unstable.legacyPackages.x86_64-linux;
|
||||
unstable = import nixpkgs-unstable {
|
||||
inherit system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
};
|
||||
nixosSystem = (systemModules: nixpkgs.lib.nixosSystem { modules = systemModules; });
|
||||
nixos-hw = nixos-hardware.nixosModules;
|
||||
|
|
|
|||
|
|
@ -6,9 +6,15 @@
|
|||
openrgb
|
||||
gwe
|
||||
liquidctl
|
||||
egl-wayland
|
||||
# egl-wayland
|
||||
# nvidia-vaapi-driver
|
||||
];
|
||||
|
||||
# environment.sessionVariables = {
|
||||
# # wayland chromium workaround
|
||||
# NIXOS_OZONE_WL = "1";
|
||||
# };
|
||||
|
||||
fileSystems."/home" = {
|
||||
device = "/dev/disk/by-uuid/eb9fcce2-e9f3-438a-b5ce-8f72f32f0e09";
|
||||
fsType = "btrfs";
|
||||
|
|
@ -67,10 +73,8 @@
|
|||
};
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||
# package = (config.boot.kernelPackages.callPackage
|
||||
# "${pkgs.unstable.path}/pkgs/os-specific/linux/nvidia-x11/default.nix"
|
||||
# { });
|
||||
# package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||
package = pkgs.unstable.linuxPackages_latest.nvidiaPackages.production;
|
||||
};
|
||||
|
||||
networking.hostName = "NOcomputer";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue