This commit is contained in:
Moritz Böhme 2021-09-08 17:24:29 +02:00
parent fd4d23f6e1
commit 1f9e9ba952

View file

@ -8,128 +8,144 @@
home.username = "moritz"; home.username = "moritz";
home.homeDirectory = "/home/moritz"; home.homeDirectory = "/home/moritz";
programs.git = { programs = {
enable = true; git = {
userName = "MoritzBoehme"; enable = true;
userEmail = "mr.x@moritzboeh.me"; userName = "MoritzBoehme";
}; userEmail = "mr.x@moritzboeh.me";
# Zathura
programs.zathura = {
enable = true;
options = {
recolor = true;
completion-bg = "#282a36";
completion-fg = "#ff79c6";
default-bg = "#44475a";
default-fg = "#bd93f9";
inputbar-bg = "#282a36";
inputbar-fg = "#8be9fd";
statusbar-bg = "#282a36";
statusbar-fg = "#bd93f9";
font = "Jetbrains Mono 9";
recolor-lightcolor = "#282a36";
recolor-darkcolor = "#f8f8f2";
};
};
# Zsh
programs.zsh = {
enable = true;
shellGlobalAliases = {
ls = "exa -lh";
cat = "bat";
}; };
plugins = [ zathura = {
{ enable = true;
name = "zsh-autosuggestions"; options = {
src = pkgs.fetchFromGitHub { recolor = true;
owner = "zsh-users"; completion-bg = "#282a36";
repo = "zsh-autosuggestions"; completion-fg = "#ff79c6";
rev = "v0.4.0"; default-bg = "#44475a";
sha256 = "0z6i9wjjklb4lvr7zjhbphibsyx51psv50gm07mbb0kj9058j6kc"; default-fg = "#bd93f9";
}; inputbar-bg = "#282a36";
} inputbar-fg = "#8be9fd";
{ statusbar-bg = "#282a36";
name = "zsh-syntax-highlighting"; statusbar-fg = "#bd93f9";
src = pkgs.fetchFromGitHub { font = "Jetbrains Mono 9";
owner = "zsh-users"; recolor-lightcolor = "#282a36";
repo = "zsh-syntax-highlighting"; recolor-darkcolor = "#f8f8f2";
rev = "0e1bb14452e3fc66dcc81531212e1061e02c1a61"; };
sha256 = "09ncmyqlk9a3h470z0wgbkrznb5zyc9dj96011wm89rdxc1irxk2"; };
};
} zsh = {
]; enable = true;
shellGlobalAliases = {
ls = "exa -lh";
cat = "bat";
};
plugins = [
{
name = "zsh-autosuggestions";
src = pkgs.fetchFromGitHub {
owner = "zsh-users";
repo = "zsh-autosuggestions";
rev = "v0.4.0";
sha256 = "0z6i9wjjklb4lvr7zjhbphibsyx51psv50gm07mbb0kj9058j6kc";
};
}
{
name = "zsh-syntax-highlighting";
src = pkgs.fetchFromGitHub {
owner = "zsh-users";
repo = "zsh-syntax-highlighting";
rev = "0e1bb14452e3fc66dcc81531212e1061e02c1a61";
sha256 = "09ncmyqlk9a3h470z0wgbkrznb5zyc9dj96011wm89rdxc1irxk2";
};
}
];
};
kitty = {
enable = true;
settings = {
scrollback_lines = 10000;
enable_audio_bell = false;
cursor_shape = "underline";
};
extraConfig = builtins.readFile ~/.config/kitty/dracula.conf;
font = {
name = "FiraCode Nerd Font";
size = 10;
};
};
exa.enable = true;
bat.enable = true;
starship = {
enable = true;
enableZshIntegration = true;
};
rofi = {
enable = true;
theme = ~/.config/rofi/dracula_old.rasi;
};
emacs.enable = true;
}; };
xdg = { xdg = {
enable = true; enable = true;
configFile = { configFile = {
"sxhkd/sxhkdrc".source = ~/.dotfiles/config/sxhkd/sxhkdrc; "sxhkd/sxhkdrc" = {
"bspwm/bspwmrc".source = ~/.dotfiles/config/bspwm/bspwmrc; source = ~/.dotfiles/config/sxhkd/sxhkdrc;
onChange = "pkill -USR1 -x sxhkd";
};
"bspwm/bspwmrc" = {
source = ~/.dotfiles/config/bspwm/bspwmrc;
onChange = "bspc wm -r";
};
"doom" = {
source = ~/.dotfiles/config/doom;
recursive = true;
onChange = builtins.readFile ~/.dotfiles/config/doom/reload.sh;
};
"kitty" = {
source = ~/.dotfiles/config/kitty;
recursive = true;
};
"rofi" = {
source = ~/.dotfiles/config/rofi;
recursive = true;
};
}; };
}; };
# Kitty services = {
programs.kitty = { polybar = {
enable = true; enable = true;
settings = { script = ''for m in $(polybar --list-monitors | ${pkgs.coreutils}/bin/cut -d":" -f1); do
scrollback_lines = 10000; MONITOR=$m polybar --reload bottom &
enable_audio_bell = false; done
cursor_shape = "underline"; '';
config = ~/.dotfiles/config/polybar/config.ini;
extraConfig = builtins.readFile ~/.dotfiles/config/polybar/modules.ini +
builtins.readFile ~/.dotfiles/config/polybar/colors.ini;
}; };
extraConfig = builtins.readFile ~/.dotfiles/config/kitty/dracula.conf;
font = { picom = {
name = "FiraCode Nerd Font"; enable = true;
size = 10; inactiveOpacity = "0.95";
opacityRule = [
"100:fullscreen"
"80 :class_g = 'Polybar'"
];
blur = true;
inactiveDim = "0.1";
}; };
emacs.enable = true;
}; };
programs.exa.enable = true;
programs.bat.enable = true;
programs.starship = {
enable = true;
enableZshIntegration = true;
};
services.polybar = {
enable = true;
script = ''for m in $(polybar --list-monitors | ${pkgs.coreutils}/bin/cut -d":" -f1); do
MONITOR=$m polybar --reload bottom &
done
'';
config = ~/.dotfiles/config/polybar/config.ini;
extraConfig = builtins.readFile ~/.dotfiles/config/polybar/modules.ini +
builtins.readFile ~/.dotfiles/config/polybar/colors.ini;
};
services.picom = {
enable = true;
inactiveOpacity = "0.95";
opacityRule = [
"100:fullscreen"
"80 :class_g = 'Polybar'"
];
blur = true;
inactiveDim = "0.1";
};
programs.rofi = {
enable = true;
};
programs.emacs.enable = true;
services.emacs.enable = true;
home.file.".doom.d" = {
source = ~/.dotfiles/config/doom;
recursive = true;
onChange = builtins.readFile ~/.dotfiles/config/doom/reload.sh;
};
home.packages = with pkgs; [ home.packages = with pkgs; [
neofetch neofetch