mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
switched to older kernel and newer nvidia game-laptop
This commit is contained in:
parent
1e58b111c0
commit
9689d623aa
2 changed files with 4 additions and 3 deletions
|
|
@ -32,13 +32,12 @@ inputs: {
|
||||||
pkgs.pcmanfm #file manager
|
pkgs.pcmanfm #file manager
|
||||||
pkgs.librewolf #best browser
|
pkgs.librewolf #best browser
|
||||||
pkgs.webcord
|
pkgs.webcord
|
||||||
|
inputs.suckless.packages.${pkgs.system}.st
|
||||||
];
|
];
|
||||||
networking = {
|
networking = {
|
||||||
hostName = settings.hostname;
|
hostName = settings.hostname;
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
};
|
};
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
hardware.cpu.amd.updateMicrocode = true;
|
|
||||||
users = {
|
users = {
|
||||||
users."${settings.username}" = {
|
users."${settings.username}" = {
|
||||||
uid = 1000;
|
uid = 1000;
|
||||||
|
|
@ -51,6 +50,7 @@ inputs: {
|
||||||
boot = {
|
boot = {
|
||||||
initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci"];
|
initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci"];
|
||||||
kernelModules = ["kvm-amd"];
|
kernelModules = ["kvm-amd"];
|
||||||
|
kernelPackages = pkgs.linuxPackages_zen;
|
||||||
};
|
};
|
||||||
fileSystems = {
|
fileSystems = {
|
||||||
"/" = {
|
"/" = {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
_: {
|
_: {config, ...}: {
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
|
package = config.boot.kernelPackages.nvidiaPackages.latest;
|
||||||
prime = {
|
prime = {
|
||||||
offload.enable = true;
|
offload.enable = true;
|
||||||
amdgpuBusId = "PCI:5:0:0";
|
amdgpuBusId = "PCI:5:0:0";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue