rust and half of zsh

This commit is contained in:
atagen 2022-08-17 21:49:53 +10:00
parent abacd37b22
commit ac0ecdb0ed
2 changed files with 39 additions and 48 deletions

View file

@ -1,6 +1,9 @@
{ config, pkgs, ... }:
{
nixpkgs.overlays = [
(import "${fetchTarball "https://github.com/nix-community/fenix/archive/main.tar.gz"}/overlay.nix")
];
home.username = "fossil";
home.homeDirectory = "/home/fossil";
@ -9,22 +12,39 @@
firefox
thunderbird
cmus
zellij
zsh
zoxide
zsh-vi-mode
zsh-autopair
zsh-nix-shell
oh-my-zsh
zsh-completions
zellij
btop
rust-analyzer-nightly
(fenix.complete.withComponents [
"cargo"
"clippy"
"rust-src"
"rustc"
"rustfmt"
])
zsh-powerlevel10k
zsh-autocomplete
zsh-fast-syntax-highlighting
zsh-history-search-multi-word
nix-zsh-completions
];
programs.zsh = {
enableAutosuggestions = true;
enableCompletion = true;
enableSyntaxHighlighting = true;
enableVteIntegration = true;
autocd = true;
defaultKeymap = "viins";
dotDir = ".nix";
oh-my-zsh = {
enable = true;
plugins = [ "git" "sudo" "zoxide" "powerlevel10k" "zsh-nix-shell" "zsh-history-search-multi-word" "zsh-vi-mode" "zsh-completions" "zsh-autopair" "zsh-autocomplete" "zsh-fast-syntax-highlighting" ];
theme = "powerlevel10k/powerlevel10k";
};
};
home.stateVersion = "22.05";
programs.home-manager.enable = true;