nixos-config/home-manager/modules/kanshi.nix
2022-06-04 23:49:08 +00:00

53 lines
931 B
Nix

{ nixosConfig, ... }:
let
machines = {
milhouse = {
"laptop" = {
outputs = [
{
criteria = "eDP-1";
scale = 1.0;
}
];
};
};
jimbo = {
"laptop" = {
outputs = [
{
criteria = "eDP-1";
scale = 1.8;
}
];
};
"homeoffice" = {
outputs = [
{
criteria = "eDP-1";
scale = 1.8;
position = "0,0";
}
{
criteria = "DP-3";
scale = 1.3;
position = "2133,0";
}
{
criteria = "DP-1";
scale = 1.3;
position = "5087,0";
}
];
};
};
};
in
{
services.kanshi = {
enable = true;
#profiles = lookup machines "milhouse";
profiles = machines."${nixosConfig.networking.hostName}";
};
}