From c14709c941a2585164ac609646382c7adda32dd4 Mon Sep 17 00:00:00 2001 From: Bad Date: Sat, 10 Apr 2021 14:50:48 +0200 Subject: [PATCH] Add nix-shell zsh --- users/mae/default.nix | 5 +++-- users/profiles/zsh/default.nix | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/users/mae/default.nix b/users/mae/default.nix index bbee68f..6094909 100644 --- a/users/mae/default.nix +++ b/users/mae/default.nix @@ -3,11 +3,12 @@ home-manager.users.mae = { imports = [ ../profiles/git ../profiles/zsh ]; home.packages = with pkgs; [ - arc-theme + arc-theme ]; - + home.sessionVariables = { XDG_DATA_DIRS = "$XDG_DATA_DIRS:/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share"; + NIX_BUILD_SHELL = "zsh"; }; gtk.theme.name = "arc-dark"; programs.neovim = import ./vim.nix { pkgs = pkgs; }; diff --git a/users/profiles/zsh/default.nix b/users/profiles/zsh/default.nix index 17c9093..88e25cc 100644 --- a/users/profiles/zsh/default.nix +++ b/users/profiles/zsh/default.nix @@ -5,13 +5,14 @@ enable = true; plugins = [ { name = "romkatv/powerlevel10k"; tags = [ "as:theme" "depth:1" ]; } + { name = "chisui/zsh-nix-shell"; } ]; }; initExtraFirst = '' - ${builtins.readFile ./p10k.zsh.initfirst} + ${builtins.readFile ./p10k.zsh.initfirst} ''; initExtra = '' - ${builtins.readFile ./p10k.zsh} + ${builtins.readFile ./p10k.zsh} ''; }; }