mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
nvidia settings tinkering
This commit is contained in:
parent
e484d6bdbe
commit
efd960026c
2 changed files with 6 additions and 7 deletions
|
|
@ -20,6 +20,7 @@
|
||||||
};
|
};
|
||||||
allowedUnfree = [
|
allowedUnfree = [
|
||||||
"nvidia-x11"
|
"nvidia-x11"
|
||||||
|
"nvidia-settings"
|
||||||
"steam"
|
"steam"
|
||||||
"steam-unwrapped"
|
"steam-unwrapped"
|
||||||
"steam-run"
|
"steam-run"
|
||||||
|
|
@ -30,9 +31,9 @@
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||||
nvidiaPersistenced = false;
|
nvidiaPersistenced = false;
|
||||||
nvidiaSettings = false;
|
nvidiaSettings = true;
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
open = false;
|
open = true;
|
||||||
powerManagement = {
|
powerManagement = {
|
||||||
enable = lib.mkForce false;
|
enable = lib.mkForce false;
|
||||||
finegrained = lib.mkForce false;
|
finegrained = lib.mkForce false;
|
||||||
|
|
@ -40,12 +41,11 @@
|
||||||
prime = {
|
prime = {
|
||||||
nvidiaBusId = "PCI:1:0:0";
|
nvidiaBusId = "PCI:1:0:0";
|
||||||
amdgpuBusId = "PCI:15:0:0";
|
amdgpuBusId = "PCI:15:0:0";
|
||||||
#sync.enable = true;
|
sync.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
services.xserver.videoDrivers = [
|
services.xserver.videoDrivers = [
|
||||||
"nvidia"
|
"nvidia"
|
||||||
"amdgpu"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
hardware.amdgpu = {
|
hardware.amdgpu = {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
fetch-rs,
|
fetch-rs,
|
||||||
pkgs,
|
pkgs,
|
||||||
config,
|
config,
|
||||||
lib,
|
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
systemd.tmpfiles.rules = [ "d /tmp/neovim-page 0777 root root - -" ];
|
systemd.tmpfiles.rules = [ "d /tmp/neovim-page 0777 root root - -" ];
|
||||||
|
|
@ -47,8 +46,8 @@
|
||||||
|
|
||||||
#begone sudo
|
#begone sudo
|
||||||
security = {
|
security = {
|
||||||
sudo.enable = lib.mkForce false;
|
#sudo.enable = lib.mkForce false;
|
||||||
wrappers.su.setuid = lib.mkForce false;
|
#wrappers.su.setuid = lib.mkForce false;
|
||||||
};
|
};
|
||||||
|
|
||||||
#zsh stuff
|
#zsh stuff
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue