Update README.md

Specify the version of NixOS, and add the update of `initExtra` in 25.05v of NixOS.
This commit is contained in:
Ahmed Hosam 2025-05-15 16:42:43 +03:00 committed by GitHub
parent 8de553fbc9
commit d8fbc75bab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -553,6 +553,7 @@ Follow the instructions on
### NixOS ### NixOS
**Home Manager** **Home Manager**
```nix ```nix
programs.zsh = { programs.zsh = {
... ...
@ -564,11 +565,16 @@ programs.zsh = {
} }
]; ];
# NixOS 24.11 or earlier:
initExtra = '' initExtra = ''
source ~/.p10k.zsh source ~/.p10k.zsh
''; '';
# NixOS 25.05 or later:
# initContent = let initExtra = lib.mkOrder 1000 '' [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh ''; in lib.mkMerge [initExtra];
}; };
``` ```
**System wide** **System wide**
```nix ```nix
programs.zsh = { programs.zsh = {