1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00:00

kitty: Allow package to be configurable (#2640)

This commit is contained in:
Roch D'Amour 2022-01-16 18:19:32 -05:00 committed by GitHub
parent 46bba772f2
commit 986cf41b3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = ''