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, ... }:
|
outputs = { nixpkgs, nixos-hardware, nixpkgs-unstable, ... }:
|
||||||
let
|
let
|
||||||
|
system = "x86_64-linux";
|
||||||
overlay-unstable = final: prev: {
|
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; });
|
nixosSystem = (systemModules: nixpkgs.lib.nixosSystem { modules = systemModules; });
|
||||||
nixos-hw = nixos-hardware.nixosModules;
|
nixos-hw = nixos-hardware.nixosModules;
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,15 @@
|
||||||
openrgb
|
openrgb
|
||||||
gwe
|
gwe
|
||||||
liquidctl
|
liquidctl
|
||||||
egl-wayland
|
# egl-wayland
|
||||||
|
# nvidia-vaapi-driver
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# environment.sessionVariables = {
|
||||||
|
# # wayland chromium workaround
|
||||||
|
# NIXOS_OZONE_WL = "1";
|
||||||
|
# };
|
||||||
|
|
||||||
fileSystems."/home" = {
|
fileSystems."/home" = {
|
||||||
device = "/dev/disk/by-uuid/eb9fcce2-e9f3-438a-b5ce-8f72f32f0e09";
|
device = "/dev/disk/by-uuid/eb9fcce2-e9f3-438a-b5ce-8f72f32f0e09";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
|
|
@ -67,10 +73,8 @@
|
||||||
};
|
};
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
# package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||||
# package = (config.boot.kernelPackages.callPackage
|
package = pkgs.unstable.linuxPackages_latest.nvidiaPackages.production;
|
||||||
# "${pkgs.unstable.path}/pkgs/os-specific/linux/nvidia-x11/default.nix"
|
|
||||||
# { });
|
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.hostName = "NOcomputer";
|
networking.hostName = "NOcomputer";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue