common: add zsh + oh-my-zsh + powerlevel10k for darman
This commit is contained in:
+15
-1
@@ -7,6 +7,7 @@
|
||||
isNormalUser = true;
|
||||
description = "darman";
|
||||
extraGroups = [ "wheel" "networkmanager" ];
|
||||
shell = pkgs.zsh;
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGZpkPVhzi1zG5JI9hWyUgdyvNIQbp4ts4jw3idpMhhN erik@laptop"
|
||||
];
|
||||
@@ -47,7 +48,20 @@
|
||||
options = "--delete-older-than 30d";
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [ vim git htop tmux curl wget ];
|
||||
environment.systemPackages = with pkgs; [ vim git htop tmux curl wget zsh-powerlevel10k ];
|
||||
|
||||
# ---- zsh / oh-my-zsh / powerlevel10k ----
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
ohMyZsh = {
|
||||
enable = true;
|
||||
theme = "robbyrussell"; # prompt itself replaced by p10k below
|
||||
};
|
||||
interactiveShellInit = ''
|
||||
source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme
|
||||
source ${./dotfiles/p10k.zsh}
|
||||
'';
|
||||
};
|
||||
|
||||
# ---- Locale / firewall base ----
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
Reference in New Issue
Block a user