nixos-config/home-manager/modules/kanshi/default.nix
2024-08-28 16:55:22 +02:00

62 lines
1.2 KiB
Nix

{
config,
lib,
...
}:
with lib;
let
cfg = config.eboskma.services.kanshi;
in
{
options.eboskma.services.kanshi = {
enable = mkEnableOption "kanshi";
};
config = mkIf cfg.enable {
services.kanshi = {
enable = true;
settings = [
{
profile = {
name = "local";
outputs = [
{
criteria = "DP-1";
status = "enable";
}
{
criteria = "DP-3";
status = "enable";
}
{
criteria = "HDMI-A-1";
status = "disable";
}
];
};
}
{
profile = {
name = "remote";
outputs = [
{
criteria = "DP-1";
status = "disable";
}
{
criteria = "DP-3";
status = "disable";
}
{
criteria = "HDMI-A-1";
status = "enable";
}
];
};
}
];
};
home.packages = [ config.services.kanshi.package ];
};
}