kanshi: init

This commit is contained in:
Erwin Boskma 2024-08-28 16:55:22 +02:00
parent dcb9a76194
commit 5ad5eaef83
Signed by: erwin
SSH key fingerprint: SHA256:OCinH/khuGY1LA9RG8YLM8GNH6C1DDXBdy3SNE+I5Hw

View file

@ -0,0 +1,62 @@
{
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 ];
};
}