gaming and zsh
This commit is contained in:
parent
ac0ecdb0ed
commit
a950fc35e8
3 changed files with 1810 additions and 9 deletions
|
@ -1,6 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nixpkgs.overlays = [
|
||||
(import "${fetchTarball "https://github.com/nix-community/fenix/archive/main.tar.gz"}/overlay.nix")
|
||||
];
|
||||
|
@ -14,6 +15,7 @@
|
|||
cmus
|
||||
zellij
|
||||
btop
|
||||
steam
|
||||
|
||||
rust-analyzer-nightly
|
||||
(fenix.complete.withComponents [
|
||||
|
@ -24,26 +26,93 @@
|
|||
"rustfmt"
|
||||
])
|
||||
|
||||
zsh-powerlevel10k
|
||||
nix-zsh-completions
|
||||
zoxide
|
||||
meslo-lgs-nf
|
||||
|
||||
];
|
||||
|
||||
|
||||
programs.kitty = {
|
||||
enable = true;
|
||||
font = {
|
||||
name = "Meslo LGS NF";
|
||||
size = 11;
|
||||
};
|
||||
};
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "atagen";
|
||||
userEmail = "atagen@boss.co";
|
||||
};
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
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";
|
||||
};
|
||||
initExtra = "\n[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh\n";
|
||||
plugins = [
|
||||
{
|
||||
name = "powerlevel10k";
|
||||
src = pkgs.zsh-powerlevel10k;
|
||||
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
||||
}
|
||||
{
|
||||
name = "zsh-vi-mode";
|
||||
src = pkgs.zsh-vi-mode;
|
||||
file = "share/zsh-vi-mode/zsh-vi-mode.zsh";
|
||||
}
|
||||
{
|
||||
name = "zsh-completions";
|
||||
src = pkgs.zsh-completions;
|
||||
file = "share/zsh-completions/zsh-completions.zsh";
|
||||
}
|
||||
{
|
||||
name = "zsh-autopair";
|
||||
src = pkgs.zsh-autopair;
|
||||
file = "share/zsh-autopair/zsh-autopair.zsh";
|
||||
}
|
||||
{
|
||||
name = "zsh-autocomplete";
|
||||
src = pkgs.zsh-autocomplete;
|
||||
file = "share/zsh-autocomplete/zsh-autocomplete.zsh";
|
||||
}
|
||||
{
|
||||
name = "zsh-fast-syntax-highlighting";
|
||||
src = pkgs.zsh-fast-syntax-highlighting;
|
||||
file = "share/zsh-fast-syntax-highlighting/zsh-fast-syntax-highlighting.zsh";
|
||||
}
|
||||
{
|
||||
name = "zsh-history-search-multi-word";
|
||||
src = pkgs.zsh-history-search-multi-word;
|
||||
file = "share/zsh-history-search-multi-word/zsh-history-search-multi-word.zsh";
|
||||
}
|
||||
{
|
||||
name = "zsh-nix-shell";
|
||||
src = pkgs.zsh-nix-shell;
|
||||
file = "share/zsh-nix-shell/zsh-nix-shell.zsh";
|
||||
}
|
||||
{
|
||||
name = "nix-zsh-completions";
|
||||
src = pkgs.nix-zsh-completions;
|
||||
file = "share/nix-zsh-completions/nix-zsh-completions.zsh";
|
||||
}
|
||||
];
|
||||
# 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";
|
||||
# };
|
||||
};
|
||||
|
||||
programs.helix.enable = true;
|
||||
programs.helix.settings = {
|
||||
theme = "bogster";
|
||||
};
|
||||
|
||||
home.stateVersion = "22.05";
|
||||
|
||||
|
|
|
@ -47,7 +47,8 @@
|
|||
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
hardware.opengl.driSupport32Bit = true;
|
||||
|
||||
# Configure keymap in X11
|
||||
#input stuff
|
||||
hardware.ckb-next.enable = true;
|
||||
services.xserver.layout = "us";
|
||||
# services.xserver.xkbOptions = {
|
||||
# "eurosign:e";
|
||||
|
@ -93,6 +94,8 @@
|
|||
environment.systemPackages = with pkgs; [
|
||||
helix
|
||||
rnix-lsp
|
||||
|
||||
ckb-next
|
||||
|
||||
home-manager
|
||||
git
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue