1
0
Files
dotfiles/blueplum.nix
2025-11-21 17:11:38 +01:00

43 lines
788 B
Nix

{
config,
pkgs,
lib ? pkgs.lib,
...
}:
let
concat = strings: lib.concatStringsSep " " strings;
in
{
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia = {
modesetting.enable = true;
open = true;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
services.xserver.displayManager.setupCommands = concat [
"${lib.getExe pkgs.xorg.xrandr}"
concat
[
"--output DP-0"
"--mode 1920x1080"
"--pos 0x0"
"--rate 144"
"--primary"
]
concat
[
"--output HDMI-0"
"--mode 1920x1080"
"--pos 1920x0"
"--rate 144"
]
];
}