mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-15 17:45:12 -05:00
40 lines
672 B
Nix
40 lines
672 B
Nix
![]() |
{
|
||
|
colourHelpers,
|
||
|
flake,
|
||
|
osConfig,
|
||
|
...
|
||
|
}:
|
||
|
let
|
||
|
inherit (flake.config.machines) devices;
|
||
|
|
||
|
mars = devices.mars.name;
|
||
|
deimos = devices.deimos.name;
|
||
|
host = osConfig.networking.hostName;
|
||
|
|
||
|
deviceLogic =
|
||
|
d: m:
|
||
|
if host == deimos then
|
||
|
d
|
||
|
else if host == mars then
|
||
|
m
|
||
|
else
|
||
|
null;
|
||
|
in
|
||
|
{
|
||
|
outputs = {
|
||
|
"${deviceLogic "eDP-1" "DP-1"}" = {
|
||
|
background-color = colourHelpers.makeColour colourHelpers.el.base02;
|
||
|
scale = 1.0;
|
||
|
mode = {
|
||
|
width = deviceLogic 1920 2560;
|
||
|
height = 1080;
|
||
|
refresh = deviceLogic 59.94 199.92;
|
||
|
};
|
||
|
position = {
|
||
|
x = 0;
|
||
|
y = 0;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|