Add zsh configuration
This commit is contained in:
parent
a4a88ca8ed
commit
e5d8397eaa
4 changed files with 1598 additions and 10 deletions
|
@ -1,7 +1,7 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
home-manager.users.mae = {
|
home-manager.users.mae = {
|
||||||
imports = [ ../profiles/git ];
|
imports = [ ../profiles/git ../profiles/zsh ];
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
arc-theme
|
arc-theme
|
||||||
];
|
];
|
||||||
|
@ -10,15 +10,6 @@
|
||||||
XDG_DATA_DIRS = "$XDG_DATA_DIRS:/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share";
|
XDG_DATA_DIRS = "$XDG_DATA_DIRS:/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share";
|
||||||
};
|
};
|
||||||
gtk.theme.name = "arc-dark";
|
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; };
|
programs.neovim = import ./vim.nix { pkgs = pkgs; };
|
||||||
};
|
};
|
||||||
users.users.mae = {
|
users.users.mae = {
|
||||||
|
|
17
users/profiles/zsh/default.nix
Normal file
17
users/profiles/zsh/default.nix
Normal 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
1577
users/profiles/zsh/p10k.zsh
Normal file
File diff suppressed because it is too large
Load diff
3
users/profiles/zsh/p10k.zsh.initfirst
Normal file
3
users/profiles/zsh/p10k.zsh.initfirst
Normal 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
|
Loading…
Reference in a new issue