26 lines
663 B
Nix
26 lines
663 B
Nix
{ lib, pkgs, flakeRoot, ... }:
|
|
|
|
let
|
|
# Path to generated global zshrc
|
|
generatedZsh = "${flakeRoot}/generated/.config/zsh/.zshrc";
|
|
in
|
|
{
|
|
#################################
|
|
# Install Zsh and Oh My Zsh system-wide
|
|
#################################
|
|
environment.systemPackages = with pkgs; [
|
|
zsh
|
|
oh-my-zsh
|
|
];
|
|
|
|
#################################
|
|
# Deploy global zshrc for all users
|
|
#################################
|
|
environment.etc."zshrc".text = ''
|
|
export ZSH=${pkgs.oh-my-zsh}/share/oh-my-zsh
|
|
ZSH_THEME=""
|
|
plugins=(git sudo extract colored-man-pages command-not-found history docker kubectl)
|
|
source $ZSH/oh-my-zsh.sh
|
|
'';
|
|
}
|