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

View file

@ -8,14 +8,14 @@
home.username = "moritz"; home.username = "moritz";
home.homeDirectory = "/home/moritz"; home.homeDirectory = "/home/moritz";
programs.git = { programs = {
git = {
enable = true; enable = true;
userName = "MoritzBoehme"; userName = "MoritzBoehme";
userEmail = "mr.x@moritzboeh.me"; userEmail = "mr.x@moritzboeh.me";
}; };
# Zathura zathura = {
programs.zathura = {
enable = true; enable = true;
options = { options = {
recolor = true; recolor = true;
@ -33,8 +33,7 @@
}; };
}; };
# Zsh zsh = {
programs.zsh = {
enable = true; enable = true;
shellGlobalAliases = { shellGlobalAliases = {
@ -64,38 +63,65 @@
]; ];
}; };
xdg = { kitty = {
enable = true;
configFile = {
"sxhkd/sxhkdrc".source = ~/.dotfiles/config/sxhkd/sxhkdrc;
"bspwm/bspwmrc".source = ~/.dotfiles/config/bspwm/bspwmrc;
};
};
# Kitty
programs.kitty = {
enable = true; enable = true;
settings = { settings = {
scrollback_lines = 10000; scrollback_lines = 10000;
enable_audio_bell = false; enable_audio_bell = false;
cursor_shape = "underline"; cursor_shape = "underline";
}; };
extraConfig = builtins.readFile ~/.dotfiles/config/kitty/dracula.conf; extraConfig = builtins.readFile ~/.config/kitty/dracula.conf;
font = { font = {
name = "FiraCode Nerd Font"; name = "FiraCode Nerd Font";
size = 10; size = 10;
}; };
}; };
programs.exa.enable = true; exa.enable = true;
programs.bat.enable = true; bat.enable = true;
programs.starship = { starship = {
enable = true; enable = true;
enableZshIntegration = true; enableZshIntegration = true;
}; };
services.polybar = { rofi = {
enable = true;
theme = ~/.config/rofi/dracula_old.rasi;
};
emacs.enable = true;
};
xdg = {
enable = true;
configFile = {
"sxhkd/sxhkdrc" = {
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;
};
};
};
services = {
polybar = {
enable = true; enable = true;
script = ''for m in $(polybar --list-monitors | ${pkgs.coreutils}/bin/cut -d":" -f1); do script = ''for m in $(polybar --list-monitors | ${pkgs.coreutils}/bin/cut -d":" -f1); do
MONITOR=$m polybar --reload bottom & MONITOR=$m polybar --reload bottom &
@ -106,7 +132,7 @@ done
builtins.readFile ~/.dotfiles/config/polybar/colors.ini; builtins.readFile ~/.dotfiles/config/polybar/colors.ini;
}; };
services.picom = { picom = {
enable = true; enable = true;
inactiveOpacity = "0.95"; inactiveOpacity = "0.95";
opacityRule = [ opacityRule = [
@ -117,19 +143,9 @@ done
inactiveDim = "0.1"; inactiveDim = "0.1";
}; };
programs.rofi = { emacs.enable = true;
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