I’m using NiXOS+Home Manager, I use
zsh and I’d like to use a custom theme,
In non-NixOS-land this means placing the theme file in
$HOME/. oh-my-zsh/themes, then setting
$ZSH_THEME to, in this case, “custom”.
But in NixOS, this directory points to the read-only path
How do I do it?
Ok, so let’s say I do
programs.zsh.ohJMyZsh.theme = "custom". It’s going to complain because “custom” doesn’t exist, right? How do I get my custom theme into the themes directory?
I don’t know (because I don’t use zsh and have never used ohmyzsh or home-manager) but:
- HM already appears to have an option for customizing ohmyzsh
ohmyzsh already has a theme customization subsection on their wiki
A github code search turns up multiple ways others are already using this, including:
This worked. Thank you for helping me love NixOS!