mirror of
https://github.com/kp2pml30/dotfiles.git
synced 2026-04-14 14:21:45 +04:00
add another update
This commit is contained in:
parent
68a4779107
commit
96e942d8ac
15 changed files with 206 additions and 91 deletions
|
|
@ -7,7 +7,7 @@
|
|||
{
|
||||
imports = [
|
||||
./common.nix
|
||||
# ./nvidia.nix
|
||||
./nvidia.nix
|
||||
];
|
||||
|
||||
fileSystems."/" = {
|
||||
|
|
@ -37,6 +37,7 @@
|
|||
|
||||
environment.systemPackages = with pkgs; [
|
||||
exfat
|
||||
pciutils
|
||||
];
|
||||
|
||||
hardware.cpu.amd.updateMicrocode = true;
|
||||
|
|
@ -53,20 +54,22 @@
|
|||
graphics = {
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
extraPackages = with pkgs; [
|
||||
];
|
||||
|
||||
extraPackages32 = with pkgs; [
|
||||
];
|
||||
};
|
||||
|
||||
amdgpu.amdvlk = {
|
||||
enable = true;
|
||||
support32Bit.enable = true;
|
||||
|
||||
nvidia.prime = {
|
||||
offload = {
|
||||
enable = true;
|
||||
enableOffloadCmd = true;
|
||||
};
|
||||
nvidiaBusId = "PCI:5:0:0";
|
||||
amdgpuBusId = "PCI:198:0:0";
|
||||
};
|
||||
|
||||
opengl.extraPackages = with pkgs; [
|
||||
amdvlk
|
||||
];
|
||||
|
||||
opengl.extraPackages32 = with pkgs; [
|
||||
driversi686Linux.amdvlk
|
||||
];
|
||||
};
|
||||
|
||||
networking = {
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@
|
|||
services.xserver.videoDrivers = ["nvidia"];
|
||||
|
||||
hardware.nvidia = {
|
||||
package = config.boot.kernelPackages.nvidiaPackages.production;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||
modesetting.enable = true;
|
||||
open = false;
|
||||
open = true;
|
||||
nvidiaSettings = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,12 +42,12 @@
|
|||
services.qemuGuest.enable = true;
|
||||
|
||||
networking = {
|
||||
hostName = "v168671";
|
||||
hostName = "v633633";
|
||||
interfaces.ens3.ipv4.addresses = [ {
|
||||
prefixLength = 24;
|
||||
address = "185.121.233.63";
|
||||
address = "146.103.126.11";
|
||||
} ];
|
||||
defaultGateway = "185.121.233.1";
|
||||
defaultGateway = "146.103.126.1";
|
||||
nameservers = [
|
||||
"1.1.1.1"
|
||||
"8.8.8.8"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue