From 986cf41b3bf1936b9d06ef0958683f376f1319d9 Mon Sep 17 00:00:00 2001 From: Roch D'Amour Date: Sun, 16 Jan 2022 18:19:32 -0500 Subject: [PATCH] kitty: Allow package to be configurable (#2640) --- modules/programs/kitty.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/programs/kitty.nix b/modules/programs/kitty.nix index 2eefa8ab7..b39b58d0b 100644 --- a/modules/programs/kitty.nix +++ b/modules/programs/kitty.nix @@ -32,6 +32,15 @@ in { options.programs.kitty = { enable = mkEnableOption "Kitty terminal emulator"; + package = mkOption { + type = types.package; + default = pkgs.kitty; + defaultText = literalExpression "pkgs.kitty"; + description = '' + Kitty package to install. + ''; + }; + darwinLaunchOptions = mkOption { type = types.nullOr (types.listOf types.str); default = null; @@ -108,7 +117,7 @@ in { ''; }]; - home.packages = [ pkgs.kitty ] ++ optionalPackage cfg.font; + home.packages = [ cfg.package ] ++ optionalPackage cfg.font; xdg.configFile."kitty/kitty.conf" = { text = ''