This commit is contained in:
Morten Olsen
2024-04-17 14:43:43 +02:00
parent c8e35fbe82
commit 68ab6df1d3
9 changed files with 10 additions and 107 deletions

View File

@@ -3,6 +3,7 @@
{ {
boot.plymouth = { boot.plymouth = {
enable = true; enable = true;
theme = "breeze";
}; };
services = { services = {
@@ -41,10 +42,13 @@
programs.dconf.enable = true; programs.dconf.enable = true;
boot.initrd.systemd.enable = true;
environment = { environment = {
systemPackages = [ systemPackages = [
#pkgs.gnome.dconf-editor #pkgs.gnome.dconf-editor
pkgs.plymouth
pkgs.breeze-plymouth
pkgs.gnome.networkmanager-openconnect pkgs.gnome.networkmanager-openconnect
pkgs.numix-icon-theme pkgs.numix-icon-theme
pkgs.papirus-icon-theme pkgs.papirus-icon-theme

View File

@@ -31,7 +31,7 @@
"/crypto_keyfile.bin" = null; "/crypto_keyfile.bin" = null;
}; };
boot.kernelParams = [ "i915.force_probe=9b41" ]; boot.kernelParams = [ "i915.force_probe=9b41" "quiet" ];
networking.hostName = "alice-xps"; # Define your hostname. networking.hostName = "alice-xps"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.

View File

@@ -37,6 +37,7 @@
pkgs.duf pkgs.duf
pkgs.dust pkgs.dust
pkgs.rustscan pkgs.rustscan
pkgs.zoxide
]; ];
programs = { programs = {
@@ -56,30 +57,5 @@
".shellrc/rc.d" = { ".shellrc/rc.d" = {
source = ./files/shell/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";
# };
# };
}; };
} }

View File

@@ -1,15 +1,10 @@
# Load all files from .shell/rc.d directory # Load all files from .shell/rc.d directory
if [ -d $HOME/.shellrc/rc.d ]; then if [ -d $HOME/.shellrc/rc.d ]; then
for file in $HOME/.shellrc/rc.d/*.sh; do for file in $HOME/.shellrc/rc.d/*.sh; do
source $file source $file || echo "Failed to source $file"
done done
fi
if [ -d $HOME/.shellrc/rc.d ]; then
for file in $HOME/.shellrc/rc.d/*.bash; do for file in $HOME/.shellrc/rc.d/*.bash; do
source $file source $file || echo "Failed to source $file"
done done
fi fi
[ -f ~/.fzf.bash ] && source ~/.fzf.bash

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,41 +1,10 @@
export XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR:-$HOME/.cache} export XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR:-$HOME/.cache}
export ZSH="$HOME/.oh-my-zsh"
export ZSH_CUSTOM="$HOME/.config/zsh/custom"
ZSH_THEME="robbyrussell"
plugins=(
git
zsh-autosuggestions
copypath
copyfile
copybuffer
dirhistory
history
z
bgnotify
zsh-syntax-highlighting
)
source $ZSH/oh-my-zsh.sh
export LANG=en_US.UTF-8
plugins+=(zsh-vi-mode)
source $ZSH_CUSTOM/zsh-vi-mode/zsh-vi-mode.plugin.zsh
zvm_after_init() {
FZF_SHARE=/usr/share/fzf
[ -f $FZF_SHARE/completion.zsh ] && . "$FZF_SHARE/completion.zsh"
[ -f $FZF_SHARE/key-bindings.zsh ] && . "$FZF_SHARE/key-bindings.zsh"
}
# Load all files from .shell/rc.d directory # Load all files from .shell/rc.d directory
if [ -d $HOME/.shellrc/rc.d ]; then if [ -d $HOME/.shellrc/rc.d ]; then
for file in $HOME/.shellrc/rc.d/*.sh; do for file in $HOME/.shellrc/rc.d/*.sh; do
source $file source $file
done done
fi
# Load all files from .shell/zshrc.d directory
if [ -d $HOME/.shellrc/zshrc.d ]; then
for file in $HOME/.shellrc/zshrc.d/*.zsh; do for file in $HOME/.shellrc/zshrc.d/*.zsh; do
source $file source $file
done done
@@ -46,47 +15,6 @@ if [[ -n "$SSH_CONNECTION" ]] ;then
export PINENTRY_USER_DATA="USE_CURSES=1" export PINENTRY_USER_DATA="USE_CURSES=1"
fi fi
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
export PATH=~/.npm-global/bin:$PATH export PATH=~/.npm-global/bin:$PATH
export NODE_PATH=~/.npm-global/lib/node_modules export NODE_PATH=~/.npm-global/lib/node_modules