Compare commits
4 commits
5003f59185
...
33332afe63
| Author | SHA1 | Date | |
|---|---|---|---|
| 33332afe63 | |||
| 3c84127266 | |||
| 75343af2a2 | |||
| ba30eff283 |
2 changed files with 13 additions and 2 deletions
|
|
@ -87,9 +87,9 @@
|
||||||
windowManager.i3.enable = true;
|
windowManager.i3.enable = true;
|
||||||
|
|
||||||
|
|
||||||
videoDrivers = [ "nvidia" ];
|
videoDrivers = [ "amdgpu" "nvidia" ];
|
||||||
deviceSection = ''
|
deviceSection = ''
|
||||||
BusID "PCI:1:0:0" # lspci | grep VGA → find your busid
|
BusID "PCI:1:0:0"
|
||||||
Driver "nvidia"
|
Driver "nvidia"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
@ -245,9 +245,17 @@
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||||
# SSH config:
|
# SSH config:
|
||||||
};
|
};
|
||||||
|
hardware.nvidia.forceFullCompositionPipeline = true;
|
||||||
systemd.services = {
|
systemd.services = {
|
||||||
systemd-suspend.environment.SYSTEMD_SLEEP_FREEZE_USER_SESSIONS = "false";
|
systemd-suspend.environment.SYSTEMD_SLEEP_FREEZE_USER_SESSIONS = "false";
|
||||||
systemd-hibernate.environment.SYSTEMD_SLEEP_FREEZE_USER_SESSIONS = "false"; # if u care
|
systemd-hibernate.environment.SYSTEMD_SLEEP_FREEZE_USER_SESSIONS = "false"; # if u care
|
||||||
};
|
};
|
||||||
|
hardware.nvidia.prime = {
|
||||||
|
offload.enable = true;
|
||||||
|
amdgpuBusId = "PCI:7:0:0";
|
||||||
|
nvidiaBusId = "PCI:1:0:0";
|
||||||
|
#amdgpuBusId = "PCI:54:0:0"; # If you have an AMD iGPU
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,7 @@
|
||||||
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
ssh-to-age
|
||||||
pinentry-curses
|
pinentry-curses
|
||||||
cryptsetup
|
cryptsetup
|
||||||
grc
|
grc
|
||||||
|
|
@ -87,6 +88,8 @@
|
||||||
rofi
|
rofi
|
||||||
pipewire
|
pipewire
|
||||||
lshw
|
lshw
|
||||||
|
age
|
||||||
|
notepad-next
|
||||||
|
|
||||||
];
|
];
|
||||||
programs.direnv = {
|
programs.direnv = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue