mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-09 12:06:04 +01:00
antidote: null package support
This commit is contained in:
parent
0bbc3fc5c6
commit
a99c12d23e
1 changed files with 3 additions and 2 deletions
|
|
@ -24,11 +24,12 @@ in {
|
||||||
|
|
||||||
useFriendlyNames = lib.mkEnableOption "friendly names";
|
useFriendlyNames = lib.mkEnableOption "friendly names";
|
||||||
|
|
||||||
package = lib.mkPackageOption pkgs "antidote" { };
|
package = lib.mkPackageOption pkgs "antidote" { nullable = true; };
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
home.packages = [ cfg.package ];
|
home.packages = lib.mkIf (cfg.package != null) [ cfg.package ];
|
||||||
|
|
||||||
programs.zsh.initContent = let
|
programs.zsh.initContent = let
|
||||||
configFiles = pkgs.runCommand "hm_antidote-files" { } ''
|
configFiles = pkgs.runCommand "hm_antidote-files" { } ''
|
||||||
echo "${zPluginStr cfg.plugins}" > $out
|
echo "${zPluginStr cfg.plugins}" > $out
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue