programs.zsh = {
enable = true;
autosuggestions.enable = true;
syntaxHighlighting.enable = true;
zsh-autoenv.enable = true;
ohMyZsh = {
enable = true;
theme = "robbyrussell";
plugins = [
"zoxide"
"git"
"sudo"
"fzf"
];
};
this is in my configuration.nix
```nix
{
description = "trying rust as a flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs = { self, nixpkgs }:
let
system ="x86_64-linux";
pkgs = nixpkgs.legacyPackages.x86_64-linux;
in
{
devShells = {
${system}.default = pkgs.mkShell {
buildInputs = with pkgs; [
rustc
rust-analyzer
cargo
git
jujutsu
helix
zsh
];
NIX_SHELL_PRESERVE_PROMPT = 1;
};
};
};
}
```nix
{
description = "trying rust as a flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs = { self, nixpkgs }:
let
system ="x86_64-linux";
pkgs = nixpkgs.legacyPackages.x86_64-linux;
in
{
devShells = {
${system}.default = pkgs.mkShell {
buildInputs = with pkgs; [
rustc
rust-analyzer
cargo
git
jujutsu
helix
zsh
];
};
};
};
}
i managed to use zsh in the flake with nix develop -c zsh
i do not understand how to import the omz conf in this shell