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

47 lines
995 B
Nix
Raw Normal View History

2022-06-04 23:49:08 +00:00
{ nixosConfig, ... }:
let
machines = {
smithers = [
{
profile.name = "laptop-only";
profile.outputs = [
{
criteria = "eDP-1";
status = "enable";
scale = 1.3;
mode = "2256x1504@59.999Hz";
}
];
}
2024-06-18 21:37:12 +02:00
{
profile.name = "homeoffice";
profile.outputs = [
2022-03-02 15:28:37 +01:00
{
criteria = "eDP-1";
status = "disable";
2022-03-02 15:28:37 +01:00
}
{
criteria = "Samsung Electric Company U28E590 HTPJ109320";
scale = 1.4;
position = "0,0";
mode = "3840x2160@60.000Hz";
2022-03-02 15:28:37 +01:00
}
{
criteria = "Samsung Electric Company U28E590 HTPM402579";
scale = 1.4;
position = "2743,0";
mode = "3840x2160@60.000Hz";
2022-03-02 15:28:37 +01:00
}
];
}
];
2022-02-23 23:42:42 +01:00
};
2022-06-04 23:49:08 +00:00
in
{
services.kanshi = {
enable = true;
2024-06-18 21:37:12 +02:00
settings = machines."${nixosConfig.networking.hostName}";
2022-06-04 23:49:08 +00:00
};
}