init
This commit is contained in:
commit
a07bd5fd9b
66 changed files with 6115 additions and 0 deletions
12
homes/modules/shell/fastfetch/fastfetch.nix
Normal file
12
homes/modules/shell/fastfetch/fastfetch.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{ inputs, lib, pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
fastfetch # displays system info! x3
|
||||
];
|
||||
|
||||
# writes ./themes to ~/.config/fastfetch/themes
|
||||
xdg.configFile."fastfetch/themes" = {
|
||||
recursive = true;
|
||||
source = ./themes;
|
||||
};
|
||||
}
|
||||
0
homes/modules/shell/fastfetch/themes/laimu.json
Normal file
0
homes/modules/shell/fastfetch/themes/laimu.json
Normal file
26
homes/modules/shell/programs.nix
Normal file
26
homes/modules/shell/programs.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ inputs, lib, pkgs, ... }:
|
||||
{
|
||||
programs = {
|
||||
zoxide = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
options = [
|
||||
"--cmd cd"
|
||||
];
|
||||
};
|
||||
|
||||
hyfetch = {
|
||||
enable = true;
|
||||
settings = {
|
||||
preset = "genderfae";
|
||||
mode = "rgb";
|
||||
backend = "fastfetch";
|
||||
color_align = {
|
||||
mode = "vertical";
|
||||
};
|
||||
auto_detect_light_dark = true;
|
||||
pride_month_disable = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
17
homes/modules/shell/zellij/zellij.nix
Normal file
17
homes/modules/shell/zellij/zellij.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ inputs, lib, pkgs, ... }:
|
||||
let
|
||||
unstable = inputs.nixpkgs-unstable.legacyPackages.${pkgs.stdenv.hostPlatform.system};
|
||||
in
|
||||
{
|
||||
# the theme file template for zellij is in wallust
|
||||
|
||||
programs.zellij = {
|
||||
enable = true;
|
||||
enableZshIntegration = false;
|
||||
|
||||
extraConfig = ''
|
||||
theme "test"
|
||||
show_startup_tips false
|
||||
'';
|
||||
};
|
||||
}
|
||||
86
homes/modules/shell/zsh.nix
Normal file
86
homes/modules/shell/zsh.nix
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
{ inputs, lib, pkgs, ... }:
|
||||
let
|
||||
unstable = inputs.nixpkgs-unstable.legacyPackages.${pkgs.stdenv.hostPlatform.system};
|
||||
in
|
||||
{
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
autosuggestion.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
|
||||
plugins = [
|
||||
{
|
||||
name = "vi-mode";
|
||||
src = pkgs.zsh-vi-mode;
|
||||
file = "share/zsh-vi-mode/zsh-vi-mode.plugin.zsh";
|
||||
}
|
||||
];
|
||||
|
||||
initContent = ''
|
||||
# yazi wrapper!!!
|
||||
function yazi() {
|
||||
local tmp="$(mktemp -p "/run/user/$UID" -t "yazi-cwd.XXXXXX")" cwd
|
||||
command yazi "$@" --cwd-file="$tmp"
|
||||
IFS= read -r -d ''' cwd < "$tmp"
|
||||
[ -n "$cwd" ] && [ "$cwd" != "$PWD" ] && builtin cd -- "$cwd"
|
||||
rm -f -- "$tmp"
|
||||
}
|
||||
|
||||
hyfetch # oh i'm so gay!! :3
|
||||
'';
|
||||
|
||||
shellAliases = {
|
||||
# files and nav stuff
|
||||
ls = "eza";
|
||||
ll = "ls -la";
|
||||
lt = "ls --tree";
|
||||
llt = "ll --tree";
|
||||
|
||||
y = "yazi";
|
||||
|
||||
# cat with wings!!!
|
||||
cat = "bat";
|
||||
|
||||
# init github keys
|
||||
# description: gi = github initialize
|
||||
sa = "eval \"$(ssh-agent -s)\"";
|
||||
gh-auv = "ssh-add ~/.ssh/github_auroraveon";
|
||||
cb-fox = "ssh-add ~/.ssh/codeberg_foxxyora";
|
||||
|
||||
# --------------------
|
||||
# shorthand nix command aliases
|
||||
|
||||
# open nix develop with preferred shell
|
||||
# description: nd = nix develop
|
||||
nd = "nix develop -c $SHELL";
|
||||
|
||||
# description: cdns = change directory [to] nix settings
|
||||
cdns = "cd /etc/nixos";
|
||||
# cd to /etc/nixos and edit nix config
|
||||
# description: ns = nix settings
|
||||
ns = "cdns && sudo -E -s $EDITOR";
|
||||
# description: nrs = nix rebuild switch
|
||||
nrs = "cdns && nh os switch /etc/nixos";
|
||||
# upgrades the system
|
||||
upgrade = "cdns && sudo nix flake update && nh os switch /etc/nixos";
|
||||
|
||||
# kitty's ssh command (to fix xterm and other stuff qwq)
|
||||
kssh = "kitty +kitten ssh";
|
||||
|
||||
# pipes are prettyyyy!!!! :3333
|
||||
pipes1 = "pipes.sh -r 1024 -p 8 -f 30";
|
||||
pipes2 = "pipes.sh -r 4096 -p 16 -f 100";
|
||||
};
|
||||
|
||||
history = {
|
||||
size = 16384;
|
||||
};
|
||||
};
|
||||
|
||||
programs.zsh.oh-my-zsh = {
|
||||
enable = true;
|
||||
theme = "agnoster";
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue