Enable hidpi, configure libinput, enable nvidia support in docker
This commit is contained in:
parent
3f7d351186
commit
1163568fcf
2 changed files with 22 additions and 20 deletions
|
@ -41,13 +41,20 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
home-manager = true;
|
home-manager = true;
|
||||||
};
|
};
|
||||||
docker.enable = true;
|
docker = {
|
||||||
|
enable = true;
|
||||||
|
enableNvidia = true;
|
||||||
|
enableTcpSocket = true;
|
||||||
|
};
|
||||||
fonts.enable = true;
|
fonts.enable = true;
|
||||||
gnome.enable = true;
|
gnome.enable = true;
|
||||||
# greetd.enable = true;
|
# greetd.enable = true;
|
||||||
lightdm.enable = true;
|
lightdm.enable = true;
|
||||||
networking.enable = true;
|
networking.enable = true;
|
||||||
nix-common.enable = true;
|
nix-common = {
|
||||||
|
enable = true;
|
||||||
|
cross-systems = [ "aarch64-linux" ];
|
||||||
|
};
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
systemd.enable = true;
|
systemd.enable = true;
|
||||||
};
|
};
|
||||||
|
@ -79,6 +86,9 @@
|
||||||
12345
|
12345
|
||||||
5555
|
5555
|
||||||
5556
|
5556
|
||||||
|
|
||||||
|
# sccache server
|
||||||
|
10501
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -141,4 +151,3 @@
|
||||||
system.stateVersion = "22.11"; # Did you read the comment?
|
system.stateVersion = "22.11"; # Did you read the comment?
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -39,11 +39,12 @@
|
||||||
|
|
||||||
powerManagement.cpuFreqGovernor = "ondemand";
|
powerManagement.cpuFreqGovernor = "ondemand";
|
||||||
hardware = {
|
hardware = {
|
||||||
video.hidpi.enable = false;
|
video.hidpi.enable = true;
|
||||||
enableAllFirmware = true;
|
enableAllFirmware = true;
|
||||||
nvidia.modesetting.enable = true;
|
nvidia.modesetting.enable = true;
|
||||||
|
|
||||||
opengl = {
|
opengl = {
|
||||||
|
driSupport32Bit = true;
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
vaapiVdpau
|
vaapiVdpau
|
||||||
];
|
];
|
||||||
|
@ -53,25 +54,17 @@
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
videoDrivers = [ "nvidia" ];
|
videoDrivers = [ "nvidia" ];
|
||||||
|
|
||||||
# Section "Screen"
|
|
||||||
# Identifier "Screen0"
|
|
||||||
# Device "Device0"
|
|
||||||
# Monitor "Monitor0"
|
|
||||||
# DefaultDepth 24
|
|
||||||
# Option "Stereo" "0"
|
|
||||||
# Option "nvidiaXineramaInfoOrder" "DFP-2"
|
|
||||||
# Option "metamodes" "DP-4: nvidia-auto-select +3840+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On, AllowGSYNCCompatible=On}, DP-0: nvidia-auto-select +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On, AllowGSYNCCompatible=On}"
|
|
||||||
# Option "SLI" "Off"
|
|
||||||
# Option "MultiGPU" "Off"
|
|
||||||
# Option "BaseMosaic" "off"
|
|
||||||
# SubSection "Display"
|
|
||||||
# Depth 24
|
|
||||||
# EndSubSection
|
|
||||||
# EndSection
|
|
||||||
|
|
||||||
screenSection = ''
|
screenSection = ''
|
||||||
Option "metamodes" "DP-0: nvidia-auto-select +0+0 {ForceFullCompositionPipeline=On, AllowGSYNCCompatible=On}, DP-4: nvidia-auto-select +3840+0 {ForceFullCompositionPipeline=On, AllowGSYNCCompatible=On}"
|
Option "metamodes" "DP-0: nvidia-auto-select +0+0 {ForceFullCompositionPipeline=On, AllowGSYNCCompatible=On}, DP-4: nvidia-auto-select +3840+0 {ForceFullCompositionPipeline=On, AllowGSYNCCompatible=On}"
|
||||||
Option "TripleBuffer" "On"
|
Option "TripleBuffer" "On"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
libinput = {
|
||||||
|
enable = true;
|
||||||
|
mouse = {
|
||||||
|
naturalScrolling = true;
|
||||||
|
accelSpeed = "1.0";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue