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

41 lines
736 B
Nix
Raw Normal View History

2022-06-04 23:49:08 +00:00
{ nixosConfig, ... }:
let
machines = {
2024-06-18 19:37:12 +00:00
smithers = [{
profile.name = "laptop-only";
profile.outputs = [
{
criteria = "eDP-1";
scale = 1.3;
}
];
}
{
profile.name = "homeoffice";
profile.outputs = [
2022-03-02 14:28:37 +00:00
{
criteria = "eDP-1";
status = "disable";
2022-03-02 14:28:37 +00:00
}
{
criteria = "DP-10";
2022-03-02 14:28:37 +00:00
scale = 1.3;
position = "0,0";
2022-03-02 14:28:37 +00:00
}
{
criteria = "DP-9";
2022-03-02 14:28:37 +00:00
scale = 1.3;
position = "2952,0";
2022-03-02 14:28:37 +00:00
}
];
2024-06-18 19:37:12 +00:00
}];
2022-02-23 22:42:42 +00:00
};
2022-06-04 23:49:08 +00:00
in
{
services.kanshi = {
enable = true;
2024-06-18 19:37:12 +00:00
settings = machines."${nixosConfig.networking.hostName}";
2022-06-04 23:49:08 +00:00
};
}