{ 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"; mode = "3840x2160@60Hz"; position = "0,0"; } { criteria = "DP-3"; status = "enable"; mode = "3840x2160@60Hz"; position = "3840,0"; } { 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"; mode = "1920x1080@120Hz"; position = "0,0"; } ]; }; } ]; }; home.packages = [ config.services.kanshi.package ]; }; }