Newer
Older
nix-config / desktop.nix
{ config, pkgs, ... }:

{
  services.xrdp.enable = true;
  hardware.nvidia = {
    modesetting.enable = true;
    open = false;
    nvidiaSettings = true;
  };
  services.xserver = {
    videoDrivers = [ "nvidia" ];
    xrandrHeads = [
      {
        output = "DP-0";
        primary = true;
      }
      {
        output = "DP-2";
        monitorConfig = ''
          Option "Rotate" "right"
          Option "LeftOf" "DP-0"
      '';
      }
    ];
  }
}