helm/users/profiles/desktop/default.nix

107 lines
2.5 KiB
Nix
Raw Normal View History

2021-10-10 06:59:41 -07:00
{pkgs, ...}:
2021-10-04 08:22:19 -07:00
{
# Enable bspwm and sxhkd
xsession.windowManager.bspwm = {
enable = true;
extraConfig = ''
bspc config remove_disabled_monitors true
bspc config remove_unplugged_monitors true
bspc config borderless_monocle true
bspc config gapless_monocle true
bspc config border_width 1
bspc config window_gap 4
bspc config normal_border_color "#181a23"
bspc config active_border_color "#181a23"
bspc config focused_border_color "#bd93f9"
bspc config presel_feedback_color "#bd93f9"
# Extra padding for polybar
bspc config -m primary top_padding 34
bspc config -m primary bottom_padding 0
# Load polybar
for file in $XDG_CONFIG_HOME/bspwm/rc.d/*; do
source "$file"
done
'';
2021-10-10 06:59:41 -07:00
};
2021-10-04 08:22:19 -07:00
services.sxhkd.enable = true;
# Add gtk theme for Dracular and Paper
# Set wallpaper
# Install themes
2021-10-10 06:59:41 -07:00
# More nixOS Config
#packages = with pkgs; [
# dracula-theme
# paper-icon-theme
#];
2021-10-04 08:22:19 -07:00
# Font stuff
2021-10-10 06:59:41 -07:00
#fonts = {
# fonts = with pkgs; [
# fire-code
# hermit
# hack
# fire-code-symbols
# siji
# font-awesome-ttf
# ];
# fontconfig.defaultFonts = {
# sansSerif = ["Hermit"];
# monospace = ["Hermit"];
# };
#};
2021-10-04 08:22:19 -07:00
# Move required config files around
2021-10-10 06:59:41 -07:00
home.file = {
2021-10-04 08:22:19 -07:00
"bspwm/rc.d/polybar".source = ./run.sh;
"sxhkdrc".source = ./sxhkdrc;
"rofi/theme" = {
source = ./rofi;
recursive = true;
};
"polybar" = {
source = ./polybar;
recursive = true;
};
"dunst/dunstrc".source = ./dunstrc;
};
# Login screen
2021-10-10 06:59:41 -07:00
# not a home-manager variable, just nixOS one
#services.xserver.displayManager.lightdm.greeters.mini.extraConfig = ''
# text-color = "#ff79c6"
# password-background-color = "#1E2029"
# window-color = "#181a23"
# border-color = "#181a23"
# '';
2021-10-04 08:22:19 -07:00
# Compositor
services.picom = {
fade = true;
fadeDelta = 1;
fadeSteps = [ 0.01 0.012 ];
shadow = true;
shadowOffsets = [ (-10) (-10) ];
shadowOpacity = 0.22;
# activeOpacity = "1.00";
# inactiveOpacity = "0.92";
2021-10-10 06:59:41 -07:00
extraOptions = ''
2021-10-04 08:22:19 -07:00
shadow-radius = 12;
# blur-background = true;
# blur-background-frame = true;
# blur-background-fixed = true;
blur-kern = "7x7box";
blur-strength = 320;
2021-10-10 06:59:41 -07:00
'';
2021-10-04 08:22:19 -07:00
};
2021-10-04 08:25:59 -07:00
programs.autorandr.enable = true;
services.udiskie.automount = true;
2021-10-04 08:22:19 -07:00
}