nixos-config/users/simon/modules/sway/kanshi.nix

36 lines
747 B
Nix
Raw Normal View History

{ lib, nixosConfig, ... }:
let
getMachineConfig = machine:
if lib.hasAttr machine machineConfigs
then lib.getAttr machine machineConfigs
else { };
machineConfigs = {
nunotaba = {
standalone.outputs = lib.singleton {
criteria = "eDP-1";
mode = "1920x1080";
position = "0,0";
};
home.outputs = [
{
criteria = "eDP-1";
mode = "1920x1080";
position = "0,424";
}
{
criteria = "Dell Inc. DELL U2410 F525M0A104NL";
mode = "1920x1200";
position = "1920,0";
}
];
};
};
in
{
services.kanshi = {
enable = true;
profiles = getMachineConfig (nixosConfig.networking.hostName);
};
}