Update README.md
Specify the version of NixOS, and add the update of `initExtra` in 25.05v of NixOS.
This commit is contained in:
parent
8de553fbc9
commit
d8fbc75bab
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in New Issue