qenya/zsh: Use powerlevel10k theme

Closes #15
This commit is contained in:
Katherina Walshe-Grey 2025-04-28 17:34:36 +01:00
parent 278e172881
commit ed43e2a1f0
4 changed files with 1858 additions and 3 deletions

1832
home/qenya/.p10k.zsh Normal file

File diff suppressed because it is too large Load diff

View file

@ -3,6 +3,7 @@
./dconf
./plasma
./firefox.nix
./fontconfig.nix
./git.nix
./packages.nix
./tmux.nix

17
home/qenya/fontconfig.nix Normal file
View file

@ -0,0 +1,17 @@
{ config, lib, pkgs, osConfig, ... }:
let
inherit (lib) mkIf;
isGraphical = osConfig.services.xserver.enable;
in
mkIf isGraphical {
fonts.fontconfig = {
enable = true;
};
home.packages = with pkgs; [
meslo-lgs-nf
];
programs.vscode.userSettings."terminal.integrated.fontFamily" = "MesloLGS NF";
}

View file

@ -16,7 +16,7 @@
mv = "mv -i";
rename = "rename -i";
nix-shell = ''nix-shell --command "zsh"''; # TODO: tweak theme to display something when inside nix-shell
nix-shell = ''nix-shell --command "zsh"'';
};
history = {
@ -28,9 +28,14 @@
oh-my-zsh = {
enable = true;
plugins = [ "git" "sudo" "direnv" ];
theme = "agnoster";
theme = ""; # defer to powerlevel10k
};
initExtra = ''
source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme
source ${./.p10k.zsh}
'';
envExtra = ''
DEFAULT_USER=qenya
'';