patched up zsh, and added a readme

This commit is contained in:
Aria Nolan 2023-10-10 22:04:59 -04:00
parent 096348358c
commit 426e0314f9
5 changed files with 1752 additions and 37 deletions

19
README.md Normal file
View file

@ -0,0 +1,19 @@
Some of the resources I referenced to write this home-manager config
# Manuals
- [Home Manager Manual](https://nix-community.github.io/home-manager/)
- [Nix Tour](https://nixcloud.io/tour/?id=introduction/nix)
- [NixOS & Flakes Book](https://nixos-and-flakes.thiscute.world/introduction/)
# Git Repos
- [Gerg - nix-templates](https://github.com/Gerg-L/nix-templates)
- [fufexan](https://github.com/fufexan/dotfiles/tree/main) mainly used for my helix config
- [nix-starter-config](https://m7.rs/git/nix-starter-config/)
# Videos
- [vimjoyer - youtube](https://www.youtube.com/@vimjoyer)

View file

@ -11,7 +11,8 @@
# package = inputs.helix.packages."x86_64-linux".default; # package = inputs.helix.packages."x86_64-linux".default;
package = inputs.helix.packages.${pkgs.system}.default.overrideAttrs (self: { package = inputs.helix.packages.${pkgs.system}.default.overrideAttrs (self: {
makeWrapperArgs = with pkgs; self.makeWrapperArgs makeWrapperArgs = with pkgs;
self.makeWrapperArgs
or [] or []
++ [ ++ [
"--suffix" "--suffix"

View file

@ -16,7 +16,7 @@
cursor = "none"; cursor = "none";
cursor_shape = "block"; cursor_shape = "block";
cursor_blink_interval = 0; cursor_blink_interval = 0;
shell = "zsh"; shell = "/home/tacocat/.nix-profile/bin/zsh";
shell_integration = "no-cursor"; shell_integration = "no-cursor";
background_opacity = "0.9"; background_opacity = "0.9";
tab_bar_style = "powerline"; tab_bar_style = "powerline";

1691
shell/.p10k.zsh Normal file

File diff suppressed because it is too large Load diff

View file

@ -1,16 +1,12 @@
{ config, pkgs, ... }: { config, pkgs, inputs, ... }:
{ {
programs.zsh = { programs.zsh = {
enable = true; enable = true;
enableAutosuggestions = true; enableAutosuggestions = true;
enableCompletion = true; enableCompletion = true;
enableVteIntegration = true; syntaxHighlighting.enable = true;
autocd = false; autocd = true;
cdpath = [
"/mnt/nixos/etc/nixos/"
"/mnt/stuff/school/"
];
defaultKeymap = null; defaultKeymap = null;
dotDir = ".config/zsh"; dotDir = ".config/zsh";
history = { history = {
@ -19,36 +15,44 @@
save = 10000; save = 10000;
}; };
historySubstringSearch.enable = true; historySubstringSearch.enable = true;
oh-my-zsh = { plugins = [
enable = true; {
plugins = [ name = "powerlevel10k";
"z" file = "powerlevel10k.zsh-theme";
"git" src = pkgs.fetchFromGitHub {
"vi-mode" owner = "romkatv";
"thefuck" repo = "powerlevel10k";
]; rev = "v1.19.0";
theme = "bira"; # TODO: figure out how to source custom theme sha256 = "+hzjSbbrXr0w1rGHm6m2oZ6pfmD6UUDBfPd7uMg5l5c=";
# other cool themes: };
# duellj }
# simonoff ];
# strug
# bira
};
# plugins = [
# {
# name = "zsh-syntax-highlighting";
# src = pkgs.fetchFromGitHub {
# owner = "zsh-users";
# repo = "zsh-syntax-highlighting";
# rev = "0.7.1";
# sha256 = "gOG0NLlaJfotJfs+SUhGgLTNOnGLjoqnUp54V9aFJg8=";
# };
# }
# ];
shellAliases = { shellAliases = {
ls = "eza"; ls = "eza";
la = "eza -la";
l = "eza -l";
};
initExtra = ''
source ~/.config/zsh/.p10k.zsh
'';
localVariables = {
POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD = true;
}; };
syntaxHighlighting.enable = true;
}; };
# oh-my-zsh = {
# enable = true;
# plugins = [
# "z"
# "git"
# "vi-mode"
# "thefuck"
# ];
# theme = "bira"; # TODO: figure out how to source custom theme
# # other cool themes:
# # duellj
# # simonoff
# # strug
# # bira
# };
home.file.".config/zsh/.p10k.zsh".source = ./.p10k.zsh;
} }