Files
nixos/Droidnix/generated/modules/traveldroid/apps/zsh.nix
T
2026-03-30 13:11:32 +00:00

28 lines
763 B
Nix

{ lib, pkgs, flakeRoot, ... }:
let
# Path to generated zsh config (optional)
generatedZsh = "${flakeRoot}/generated/.config/zsh/.zshrc";
in
{
#################################
# Install Zsh and Oh My Zsh system-wide
#################################
environment.systemPackages = with pkgs; [
zsh
oh-my-zsh
];
#################################
# Optional: Deploy a custom .zshrc for all users
#################################
# This will create /etc/zsh/.zshrc for all users
environment.etc."zshrc".source = generatedZsh;
#################################
# Optional: Set default shell for all users
#################################
# You can enable this if you want
# users.extraUsers.<username>.shell = pkgs.zsh;
}