flake.lock: Update

Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/b00d0e4fe9cba0047f54e77418ddda5f17e6ef2c?narHash=sha256-NrVLXkpT9ZigiI8md6NIzHS%2B3lE4QTj30IgXG57O9iM%3D' (2024-04-09)
  → 'github:nix-community/home-manager/8fdf329526f06886b53b94ddf433848a0d142984?narHash=sha256-jzTo97VeKMNfnKw3xU%2BuiU5C7wtnLudsbwl/nwPLC7s%3D' (2024-04-13)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/05aa46a1f3b5ac92bfe84807868ba9670d48b031?narHash=sha256-rXb3onsPMiv00FrGSpIJyYa8x53W0dlbJ5Ka3xvje/c%3D' (2024-04-09)
  → 'github:NixOS/nixos-hardware/f58b25254be441cd2a9b4b444ed83f1e51244f1f?narHash=sha256-7/5ubuwdEbQ7Z%2BVqd4u0mM5L2VMNDsBh54visp27CtQ%3D' (2024-04-12)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/4cba8b53da471aea2ab2b0c1f30a81e7c451f4b6?narHash=sha256-vMZ5603yU0wxgyQeHJryOI%2BO61yrX2AHwY6LOFyV1gM%3D' (2024-04-08)
  → 'github:NixOS/nixpkgs/1042fd8b148a9105f3c0aca3a6177fd1d9360ba5?narHash=sha256-3sbWO1mbpWsLepZGbWaMovSO7ndZeFqDSdX0hZ9nVyw%3D' (2024-04-10)
• Updated input 'nur':
    'github:nix-community/NUR/ee4ce451f46a08778d1a9f9837eff0750714b08b?narHash=sha256-q3Tx4kS%2BnH4IDcEsZSv8o2IuCn475mGhCYBXxfxZ2gY%3D' (2024-04-09)
  → 'github:nix-community/NUR/80d50c92b9d514cb18ce828d4c3e4239177728af?narHash=sha256-YCV0tgYG/s6Lq28iksdk4LyDF45UShxuCXf0yuiFSBc%3D' (2024-04-13)
This commit is contained in:
Morten Olsen
2024-04-13 21:01:43 +02:00
parent f82f51cd81
commit c8e35fbe82
19 changed files with 220 additions and 112 deletions

View File

@@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:
let
astronvim = builtins.fetchGit {
@@ -10,7 +10,12 @@ let
rev = "295278f715810a2917e0eb38c304cfc290e796d7";
};
in {
programs.neovim.enable = true;
programs.neovim = {
enable = true;
defaultEditor = true;
viAlias = true;
vimAlias = true;
};
home.packages = [
pkgs.marksman
];

View File

@@ -13,6 +13,10 @@
];
home.packages = [
pkgs.eza
pkgs.zoxide
pkgs.sd
pkgs.tldr
pkgs.choose
pkgs.fd
pkgs.curl
pkgs.silver-searcher
@@ -21,6 +25,7 @@
pkgs.unzip
pkgs.nodejs
pkgs.gnumake
pkgs.atuin
pkgs.gcc
pkgs.nodePackages.pnpm
pkgs.nodePackages.yarn
@@ -29,11 +34,19 @@
pkgs.binutils
pkgs.pkg-config
pkgs.marksman
pkgs.duf
pkgs.dust
pkgs.rustscan
];
programs.jq.enable = true;
programs.zsh.enable = true;
programs.yt-dlp.enable = true;
programs = {
jq.enable = true;
zsh.enable = true;
yt-dlp.enable = true;
starship = {
enable = true;
};
};
home.file = {
".env".source = ./files/env;
@@ -43,30 +56,30 @@
".shellrc/rc.d" = {
source = ./files/shell/rc.d;
};
".oh-my-zsh" = {
source = builtins.fetchGit {
url = "https://github.com/ohmyzsh/ohmyzsh";
rev = "b07c8cfe692bc6c7702f0aef5d493b12dfb43392";
};
};
".config/zsh/custom/plugins/zsh-autosuggestions" = {
source = builtins.fetchGit {
url = "https://github.com/zsh-users/zsh-autosuggestions";
rev = "c3d4e576c9c86eac62884bd47c01f6faed043fc5";
};
};
".config/zsh/custom/plugins/zsh-syntax-highlighting" = {
source = builtins.fetchGit {
url = "https://github.com/zsh-users/zsh-syntax-highlighting";
rev = "143b25eb98aa3227af63bd7f04413e1b3e7888ec";
};
};
".config/zsh/custom/zsh-vi-mode" = {
source = builtins.fetchGit {
url = "https://github.com/jeffreytse/zsh-vi-mode";
rev = "1f28e1886dc8e49f41b817634d5c7695b6abb145";
};
};
# ".oh-my-zsh" = {
# source = builtins.fetchGit {
# url = "https://github.com/ohmyzsh/ohmyzsh";
# rev = "b07c8cfe692bc6c7702f0aef5d493b12dfb43392";
# };
# };
# ".config/zsh/custom/plugins/zsh-autosuggestions" = {
# source = builtins.fetchGit {
# url = "https://github.com/zsh-users/zsh-autosuggestions";
# rev = "c3d4e576c9c86eac62884bd47c01f6faed043fc5";
# };
# };
# ".config/zsh/custom/plugins/zsh-syntax-highlighting" = {
# source = builtins.fetchGit {
# url = "https://github.com/zsh-users/zsh-syntax-highlighting";
# rev = "143b25eb98aa3227af63bd7f04413e1b3e7888ec";
# };
# };
#
# ".config/zsh/custom/zsh-vi-mode" = {
# source = builtins.fetchGit {
# url = "https://github.com/jeffreytse/zsh-vi-mode";
# rev = "1f28e1886dc8e49f41b817634d5c7695b6abb145";
# };
# };
};
}

View File

@@ -5,5 +5,11 @@ if [ -d $HOME/.shellrc/rc.d ]; then
done
fi
if [ -d $HOME/.shellrc/rc.d ]; then
for file in $HOME/.shellrc/rc.d/*.bash; do
source $file
done
fi
[ -f ~/.fzf.bash ] && source ~/.fzf.bash

View File

@@ -0,0 +1,7 @@
if [ -f $HOME/.systemrc ]; then
source $HOME/.systemrc
fi
if [ -f $HOME/.env ]; then
source $HOME/.env
fi

View File

@@ -28,7 +28,7 @@ command -v xsel > /dev/null || alias copy='xsel -ib'
command -v urxvt > /dev/null || alias n="setsid urxvt &>/dev/null"
alias sc="sudo systemctl"
alias usermount="sudo mount -o gid=users,fmask=113,dmask=002"
alias usermount="sudo mount -o gid=users,fmask=113,dmask=002,nolock"
alias fzf="fzf --preview 'bat {} --line-range 0:100 --color always'"
alias stmux="tmux a -t base || tmux new -s base"

View File

@@ -0,0 +1 @@
eval "$(atuin init bash)"

View File

@@ -1,5 +0,0 @@
if [ -d "$HOME/.bun" ]; then
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
fi

View File

@@ -0,0 +1,40 @@
if [ `tput cols` -gt "70" ]; then
function PRINT_CENTER {
COLS=`tput cols`
OFFSET=$(( ($COLS - $1) / 2 ))
PRE=""
for i in `seq $OFFSET`; do
PRE="$PRE "
done
while IFS= read -r line; do
echo "$PRE$line"
done <<< "$2"
}
PRINT_CENTER 60 "
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
█░▄▄▀█▀▄▄▀█░▄▄░█▄░▄█▀▄▀██░▄░██░██░█░▄▄█░▄▄░█
█░▀▀▄█░██░█░▀▄░██░██░█▀█░▀▀░▀█░██░█▄▄▀███▄██
█▄█▄▄██▄▄██░▀▀░██▄███▄█████░███▄▄▄█▄▄▄█░▀▀░█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
⣴⣶⣤⡤⠦⣤⣀⣤⠆ ⣈⣭⣿⣶⣿⣦⣼⣆
⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛⣦
⠈⢿⣿⣟⠦ ⣾⣿⣿⣷ ⠻⠿⢿⣿⣧⣄
⣸⣿⣿⢧ ⢻⠻⣿⣿⣷⣄⣀⠄⠢⣀⡀⠈⠙⠿⠄
⢠⣿⣿⣿⠈ ⣻⣿⣿⣿⣿⣿⣿⣿⣛⣳⣤⣀⣀
⢠⣧⣶⣥⡤⢄ ⣸⣿⣿⠘ ⢀⣴⣿⣿⡿⠛⣿⣿⣧⠈⢿⠿⠟⠛⠻⠿⠄
⣰⣿⣿⠛⠻⣿⣿⡦⢹⣿⣷ ⢊⣿⣿⡏ ⢸⣿⣿⡇ ⢀⣠⣄⣾⠄
⣠⣿⠿⠛ ⢀⣿⣿⣷⠘⢿⣿⣦⡀ ⢸⢿⣿⣿⣄ ⣸⣿⣿⡇⣪⣿⡿⠿⣿⣷⡄
⠙⠃ ⣼⣿⡟ ⠈⠻⣿⣿⣦⣌⡇⠻⣿⣿⣷⣿⣿⣿ ⣿⣿⡇ ⠛⠻⢷⣄
⢻⣿⣿⣄ ⠈⠻⣿⣿⣿⣷⣿⣿⣿⣿⣿⡟ ⠫⢿⣿⡆
⠻⣿⣿⣿⣿⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⡟⢀⣀⣤⣾⡿⠃
▄▄▄ . ▌ ▐·▪ ▄▄▌ ▄▄▌ ▐ ▄▌▪ ▄▄▄▄▄ ▄ .▄ ▄• ▄▌▄▄▄▄▄
▀▄.▀·▪█·█▌██ ██• ██· █▌▐███ •██ ██▪▐█ ▄█▀▄ █▪██▌•██
▐▀▀▪▄▐█▐█•▐█·██ ▪ ██▪▐█▐▐▌▐█· ▐█.▪██▀▀█▐█▌.▐▌█▌▐█▌ ▐█.▪
▐█▄▄▌ ███ ▐█▌▐█▌ ▄ ▐█▌██▐█▌▐█▌ ▐█▌·██▌▐▀▐█▌.▐▌▐█▄█▌ ▐█▌·
▀▀▀ . ▀ ▀▀▀.▀▀▀ ▀▀▀▀ ▀▪▀▀▀ ▀▀▀ ▀▀▀ · ▀█▄▀▪ ▀▀▀ ▀▀▀
> welcome x_x
"
fi

View File

@@ -0,0 +1 @@
eval "$(starship init bash)"

View File

@@ -40,20 +40,12 @@ if [ -d $HOME/.shellrc/zshrc.d ]; then
source $file
done
fi
export GPG_TTY=$(tty)
if [[ -n "$SSH_CONNECTION" ]] ;then
export PINENTRY_USER_DATA="USE_CURSES=1"
fi
if [ -f $HOME/.systemrc ]; then
source $HOME/.systemrc
fi
[ -f ~/.env ] && source ~/.env
alias luamake=~/.config/lua-language-server/3rd/luamake/luamake
if [ `tput cols` -gt "70" ]; then
function PRINT_CENTER {
COLS=`tput cols`
@@ -97,5 +89,4 @@ fi
export PATH=~/.npm-global/bin:$PATH
export NODE_PATH=~/.npm-global/lib/node_modules
which wrk > /dev/null && eval `wrk tools bash`