mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59:45 +01:00
kitty: Allow package to be configurable (#2640)
This commit is contained in:
parent
46bba772f2
commit
986cf41b3b
1 changed files with 10 additions and 1 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue