62 lines
1.2 KiB
Nix
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 ];
|
|
};
|
|
}
|