diff options
author | Minijackson <minijackson@riseup.net> | 2024-06-07 20:17:28 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2024-06-07 20:17:28 +0200 |
commit | 8f2d8a73009b4ad23c18ec157ec1658af85992f0 (patch) | |
tree | ff2a0723c3f4e442201680507d38d563ca2eb2c4 /common | |
parent | 28f90bdb63f824917c9aaff22e23a32f0aae1be4 (diff) | |
download | nixos-config-reborn-8f2d8a73009b4ad23c18ec157ec1658af85992f0.tar.gz nixos-config-reborn-8f2d8a73009b4ad23c18ec157ec1658af85992f0.zip |
commandline/zsh: remove some 'with'
Diffstat (limited to 'common')
-rw-r--r-- | common/commandline/zsh.nix | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/common/commandline/zsh.nix b/common/commandline/zsh.nix index d1fdee7..aba2d94 100644 --- a/common/commandline/zsh.nix +++ b/common/commandline/zsh.nix | |||
@@ -4,12 +4,13 @@ inputs: { | |||
4 | pkgs, | 4 | pkgs, |
5 | ... | 5 | ... |
6 | }: | 6 | }: |
7 | with inputs.self.lib.theme; let | 7 | let |
8 | inherit (inputs.self.lib.theme) fgEscapeCode; | ||
8 | dominantEscapeCode = fgEscapeCode config.theme.colors.dominant; | 9 | dominantEscapeCode = fgEscapeCode config.theme.colors.dominant; |
9 | in { | 10 | in { |
10 | nixpkgs.overlays = [ | 11 | nixpkgs.overlays = [ |
11 | (final: prev: { | 12 | (_final: prev: { |
12 | zsh = prev.zsh.overrideAttrs (old: { | 13 | zsh = prev.zsh.overrideAttrs (_old: { |
13 | configureFlags = [ | 14 | configureFlags = [ |
14 | "--enable-maildir-support" | 15 | "--enable-maildir-support" |
15 | "--enable-multibyte" | 16 | "--enable-multibyte" |
@@ -26,7 +27,7 @@ in { | |||
26 | programs.zsh = { | 27 | programs.zsh = { |
27 | enable = true; | 28 | enable = true; |
28 | 29 | ||
29 | interactiveShellInit = with lib; '' | 30 | interactiveShellInit = '' |
30 | source "${pkgs.grml-zsh-config}/etc/zsh/zshrc" | 31 | source "${pkgs.grml-zsh-config}/etc/zsh/zshrc" |
31 | is4 && xsource "${pkgs.grml-zsh-config}/etc/zsh/keephack" | 32 | is4 && xsource "${pkgs.grml-zsh-config}/etc/zsh/keephack" |
32 | 33 | ||
@@ -43,8 +44,8 @@ in { | |||
43 | } | 44 | } |
44 | 45 | ||
45 | # Grml's ZSH config overrides less variables | 46 | # Grml's ZSH config overrides less variables |
46 | export ${concatStringsSep " " | 47 | export ${lib.concatStringsSep " " |
47 | (mapAttrsToList | 48 | (lib.mapAttrsToList |
48 | (variable: value: "${variable}=\"${value}\"") | 49 | (variable: value: "${variable}=\"${value}\"") |
49 | config.programs.less.envVariables)} | 50 | config.programs.less.envVariables)} |
50 | ''; | 51 | ''; |