Skip to content

Commit

Permalink
Update modules/programs/zsh/default.nix
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Hoang <[email protected]>
  • Loading branch information
mrdomino and Enzime committed Jan 21, 2024
1 parent 3a672f4 commit 8c20760
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/programs/zsh/default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{ config, lib, pkgs, ... }:
{ config, lib, options, pkgs, ... }:

with lib;

let
cfg = config.programs.zsh;
opt = options.programs.zsh;

zshVariables =
mapAttrsToList (n: v: ''${n}="${v}"'') cfg.variables;
Expand Down Expand Up @@ -73,6 +74,7 @@ in
programs.zsh.enableGlobalCompInit = mkOption {
type = types.bool;
default = cfg.enableCompletion;
defaultText = literalExpression "config.${opt.enableCompletion}";
description = lib.mdDoc ''
Enable execution of compinit call for all interactive zsh shells.
Expand Down

0 comments on commit 8c20760

Please sign in to comment.