parent
0461a90ff8
commit
58c1114531
@ -0,0 +1,29 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [ (import ./hardware-configuration.nix) ];
|
||||
|
||||
services.xserver = {
|
||||
videoDrivers = [ "nvidia" ];
|
||||
# nvidiaXineramaInfoOrder sets primary display
|
||||
# DFP-0 is default and would set left monitor, DVI-D-0, to be primary
|
||||
screenSection = ''
|
||||
Option "metamodes" "DVI-D-0: 1920x1080 +0+0, HDMI-0: 1920x1080 +1920+0, DP-3: 1920x1080 +1920+0"
|
||||
Option "nvidiaXineramaInfoOrder" "DFP-1"
|
||||
'';
|
||||
};
|
||||
|
||||
hardware.opengl.enable = true;
|
||||
|
||||
boot.loader = {
|
||||
efi = {
|
||||
canTouchEfiVariables = true;
|
||||
efiSysMountPoint = "/boot";
|
||||
};
|
||||
grub = {
|
||||
efiSupport = true;
|
||||
device = "nodev";
|
||||
useOSProber = true;
|
||||
};
|
||||
};
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [ (import ./i3.nix) ];
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
xsession.windowManager.i3.config.workspaceOutputAssign = [
|
||||
{
|
||||
output = "HDMI-0";
|
||||
workspace = "1";
|
||||
}
|
||||
{
|
||||
output = "DVI-D-0";
|
||||
workspace = "2";
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Reference in new issue