nixos-config/home-manager/modules/kanshi.nix

53 lines
931 B
Nix
Raw Normal View History

2022-06-04 23:49:08 +00:00
{ nixosConfig, ... }:
let
machines = {
milhouse = {
"laptop" = {
outputs = [
{
criteria = "eDP-1";
scale = 1.0;
}
];
};
};
jimbo = {
"laptop" = {
outputs = [
2022-03-02 14:28:37 +00:00
{
criteria = "eDP-1";
scale = 1.8;
}
];
};
"homeoffice" = {
outputs = [
2022-03-02 14:28:37 +00:00
{
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";
}
];
};
};
2022-02-23 22:42:42 +00:00
};
2022-06-04 23:49:08 +00:00
in
{
services.kanshi = {
enable = true;
#profiles = lookup machines "milhouse";
profiles = machines."${nixosConfig.networking.hostName}";
};
}