feat: updated niri

This commit is contained in:
Nick 2025-05-16 20:03:42 -05:00
parent 2b91a4d407
commit ee42e007a7
13 changed files with 562 additions and 488 deletions

View file

@ -0,0 +1,39 @@
{
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;
};
};
};
}