add nixos installation for home-manager and system-wide
This commit is contained in:
parent
36f3045d69
commit
8de553fbc9
31
README.md
31
README.md
|
@ -431,6 +431,7 @@ Powerlevel10k.
|
||||||
- [Arch Linux](#arch-linux)
|
- [Arch Linux](#arch-linux)
|
||||||
- [Alpine Linux](#alpine-linux)
|
- [Alpine Linux](#alpine-linux)
|
||||||
- [Fig](#fig)
|
- [Fig](#fig)
|
||||||
|
- [NixOS](#nixos)
|
||||||
|
|
||||||
### Manual
|
### Manual
|
||||||
|
|
||||||
|
@ -549,6 +550,36 @@ ln -s /usr/share/zsh/plugins/powerlevel10k ~/.local/share/zsh/plugins/
|
||||||
Follow the instructions on
|
Follow the instructions on
|
||||||
[this page](https://fig.io/plugins/other/powerlevel10k).
|
[this page](https://fig.io/plugins/other/powerlevel10k).
|
||||||
|
|
||||||
|
### NixOS
|
||||||
|
|
||||||
|
**Home Manager**
|
||||||
|
```nix
|
||||||
|
programs.zsh = {
|
||||||
|
...
|
||||||
|
plugins = [
|
||||||
|
{
|
||||||
|
name = "zsh-powerlevel10k";
|
||||||
|
src = "${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/";
|
||||||
|
file = "powerlevel10k.zsh-theme";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
initExtra = ''
|
||||||
|
source ~/.p10k.zsh
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
```
|
||||||
|
**System wide**
|
||||||
|
```nix
|
||||||
|
programs.zsh = {
|
||||||
|
...
|
||||||
|
promptInit = ''
|
||||||
|
source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme
|
||||||
|
source ~/.p10k.zsh
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
- [For new users](#for-new-users)
|
- [For new users](#for-new-users)
|
||||||
|
|
Loading…
Reference in New Issue