Add zsh configuration

This commit is contained in:
Bad 2021-04-10 14:46:40 +02:00
parent a4a88ca8ed
commit e5d8397eaa
4 changed files with 1598 additions and 10 deletions

View file

@ -1,7 +1,7 @@
{ pkgs, ... }:
{
home-manager.users.mae = {
imports = [ ../profiles/git ];
imports = [ ../profiles/git ../profiles/zsh ];
home.packages = with pkgs; [
arc-theme
];
@ -10,15 +10,6 @@
XDG_DATA_DIRS = "$XDG_DATA_DIRS:/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share";
};
gtk.theme.name = "arc-dark";
programs.zsh = {
enable = true;
zplug = {
enable = true;
plugins = [
{ name = "romkatv/powerlevel10k"; tags = [ "as:theme" "depth:1" ]; }
];
};
};
programs.neovim = import ./vim.nix { pkgs = pkgs; };
};
users.users.mae = {

View file

@ -0,0 +1,17 @@
{
programs.zsh = {
enable = true;
zplug = {
enable = true;
plugins = [
{ name = "romkatv/powerlevel10k"; tags = [ "as:theme" "depth:1" ]; }
];
};
initExtraFirst = ''
${builtins.readFile ./p10k.zsh.initfirst}
'';
initExtra = ''
${builtins.readFile ./p10k.zsh}
'';
};
}

1577
users/profiles/zsh/p10k.zsh Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,3 @@
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi