diff --git a/home-manager/modules/kanshi/default.nix b/home-manager/modules/kanshi/default.nix new file mode 100644 index 0000000..3559921 --- /dev/null +++ b/home-manager/modules/kanshi/default.nix @@ -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 ]; + }; +}