mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01:00
kitty: make package nullable
This commit is contained in:
parent
4958aafe7b
commit
0adf9ba3f5
1 changed files with 2 additions and 2 deletions
|
|
@ -124,7 +124,7 @@ in
|
|||
options.programs.kitty = {
|
||||
enable = mkEnableOption "Kitty terminal emulator";
|
||||
|
||||
package = lib.mkPackageOption pkgs "kitty" { };
|
||||
package = lib.mkPackageOption pkgs "kitty" { nullable = true; };
|
||||
|
||||
darwinLaunchOptions = mkOption {
|
||||
type = types.nullOr (types.listOf types.str);
|
||||
|
|
@ -293,7 +293,7 @@ in
|
|||
}
|
||||
];
|
||||
|
||||
home.packages = [ cfg.package ] ++ optionalPackage cfg.font;
|
||||
home.packages = (optionalPackage cfg) ++ (optionalPackage cfg.font);
|
||||
|
||||
programs.kitty.extraConfig = mkMerge [
|
||||
(mkIf (cfg.font != null) (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue