keeping this one for future reference

This commit is contained in:
Nickiel12 2023-10-26 16:49:06 -07:00
parent 7502947071
commit 7447cdd889
2 changed files with 47 additions and 10 deletions

View file

@ -2,6 +2,11 @@
let let
hostname = osConfig.networking.hostName;
monitor_config = import ./monitors.nix { hostname = hostname; };
workspace_config = import ./workspaces.nix { hostname = hostname; };
in in
{ {
@ -26,21 +31,30 @@ in
# Whether to enable patching wlroots for better Nvidia support # Whether to enable patching wlroots for better Nvidia support
enableNvidiaPatches = true; enableNvidiaPatches = true;
extraConfig = if (osConfig.networking.hostName == "NicksNixDesktop") then extraConfig = lib.strings.concatStrings [
monitor_config
# workspace_config
'' ''
monitor=DP-2, 2560x1440@144, 1920x0, 1
monitor=DP-3, 1920x1080@60, 0x360,1
env = LIBVA_DRIVER_NAME,nvidia
env = XDG_SESSION_TYPE,wayland
env = GBM_BACKEND,nvidia-drm
env = WLR_NO_HARDWARE_CURSORS,1
'' ''
else '' ];
'';
settings = { settings = {
workspace = [
"1,monitor:DP-2"
"3,monitor:DP-2"
"5,monitor:DP-2"
"7,monitor:DP-2"
"9,monitor:DP-2"
"2,monitor:DP-3"
"4,monitor:DP-3"
"6,monitor:DP-3"
"8,monitor:DP-3"
"10,monitor:DP-3"
];
"$mod" = "SUPER"; "$mod" = "SUPER";
exec-once = [ exec-once = [

View file

@ -0,0 +1,23 @@
{ hostname ? "undefined" }:
let
monitor_config = if (hostname == "NicksNixDesktop") then
''
monitor=DP-2, 2560x1440@144, 1920x0, 1
monitor=DP-3, 1920x1080@60, 0x360,1
env = LIBVA_DRIVER_NAME,nvidia
env = XDG_SESSION_TYPE,wayland
env = GBM_BACKEND,nvidia-drm
env = WLR_NO_HARDWARE_CURSORS,1
''
else if (hostname == "NicksNixLaptop") then ''
'' else ''
'';
in monitor_config