diff options
author | Timothy DeHerrera <tim.deh@pm.me> | 2021-06-29 14:31:10 -0600 |
---|---|---|
committer | Timothy DeHerrera <tim.deh@pm.me> | 2021-07-21 15:55:25 -0600 |
commit | 9ad645dce8e11a3ffcf27cd797abc99476c837f0 (patch) | |
tree | e3a0a669ef8df42a5df85dd2c64cb4cf45d32caa | |
parent | d687fe88fdbb00b89f4e5b82824c7b187659d648 (diff) | |
download | nixpkgs-9ad645dce8e11a3ffcf27cd797abc99476c837f0.tar nixpkgs-9ad645dce8e11a3ffcf27cd797abc99476c837f0.tar.gz nixpkgs-9ad645dce8e11a3ffcf27cd797abc99476c837f0.tar.bz2 nixpkgs-9ad645dce8e11a3ffcf27cd797abc99476c837f0.tar.lz nixpkgs-9ad645dce8e11a3ffcf27cd797abc99476c837f0.tar.xz nixpkgs-9ad645dce8e11a3ffcf27cd797abc99476c837f0.tar.zst nixpkgs-9ad645dce8e11a3ffcf27cd797abc99476c837f0.zip |
zsh: format module with nixpkgs-fmt
-rw-r--r-- | nixos/modules/programs/zsh/zsh.nix | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/nixos/modules/programs/zsh/zsh.nix b/nixos/modules/programs/zsh/zsh.nix index 81f1395662a..4eac7c8afbf 100644 --- a/nixos/modules/programs/zsh/zsh.nix +++ b/nixos/modules/programs/zsh/zsh.nix @@ -53,7 +53,7 @@ in }; shellAliases = mkOption { - default = {}; + default = { }; description = '' Set of aliases for zsh shell, which overrides <option>environment.shellAliases</option>. See <option>environment.shellAliases</option> for an option format description. @@ -118,7 +118,9 @@ in setOptions = mkOption { type = types.listOf types.str; default = [ - "HIST_IGNORE_DUPS" "SHARE_HISTORY" "HIST_FCNTL_LOCK" + "HIST_IGNORE_DUPS" + "SHARE_HISTORY" + "HIST_FCNTL_LOCK" ]; example = [ "EXTENDED_HISTORY" "RM_STAR_WAIT" ]; description = '' @@ -279,14 +281,18 @@ in environment.etc.zinputrc.source = ./zinputrc; environment.systemPackages = [ pkgs.zsh ] - ++ optional (cfg.enableCompletion && ! lib.versionAtLeast (lib.getVersion config.nix.package) "2.4pre") pkgs.nix-zsh-completions; + ++ optional + (cfg.enableCompletion + && !lib.versionAtLeast (lib.getVersion config.nix.package) "2.4pre") + pkgs.nix-zsh-completions; environment.pathsToLink = optional cfg.enableCompletion "/share/zsh"; #users.defaultUserShell = mkDefault "/run/current-system/sw/bin/zsh"; environment.shells = - [ "/run/current-system/sw/bin/zsh" + [ + "/run/current-system/sw/bin/zsh" "${pkgs.zsh}/bin/zsh" ]; |