kitty: Allow package to be configurable (#2640)
This commit is contained in:
parent
46bba772f2
commit
986cf41b3b
|
@ -32,6 +32,15 @@ in {
|
||||||
options.programs.kitty = {
|
options.programs.kitty = {
|
||||||
enable = mkEnableOption "Kitty terminal emulator";
|
enable = mkEnableOption "Kitty terminal emulator";
|
||||||
|
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
default = pkgs.kitty;
|
||||||
|
defaultText = literalExpression "pkgs.kitty";
|
||||||
|
description = ''
|
||||||
|
Kitty package to install.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
darwinLaunchOptions = mkOption {
|
darwinLaunchOptions = mkOption {
|
||||||
type = types.nullOr (types.listOf types.str);
|
type = types.nullOr (types.listOf types.str);
|
||||||
default = null;
|
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" = {
|
xdg.configFile."kitty/kitty.conf" = {
|
||||||
text = ''
|
text = ''
|
||||||
|
|
Loading…
Reference in a new issue