nix-config/home/ludwig.nix

52 lines
1.3 KiB
Nix

{ lib
, pkgs
, ...
}: {
imports = [
./global
./features/desktop/awesome
./features/desktop/common/alacritty.nix
./features/desktop/hyprland
./features/desktop/gnome
./features/coding
];
home.packages = with pkgs; [ nextcloud-client ];
nixpkgs = {
config = {
permittedInsecurePackages = [
"electron-25.9.0"
"nix-2.15.3"
];
};
};
wayland.windowManager.hyprland = {
settings = {
exec-once = [
"${lib.getExe pkgs.batsignal} -c 20 -w 30 -f 80 -n BAT0 -a Battery"
];
bind = [
", XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+"
", XF86AudioLowerVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%-"
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
", XF86MonBrightnessUp, exec, ${lib.getExe pkgs.brightnessctl} set +10%"
", XF86MonBrightnessDown, exec, ${lib.getExe pkgs.brightnessctl} set 10%-"
];
};
};
programs.waybar = {
settings = {
mainBar = {
modules-right = [ "tray" "memory" "cpu" "battery" "clock" ];
battery = {
format = "{capacity}% {icon} ";
format-icons = [ "" "" "" "" "" ];
max-length = 25;
};
};
};
};
}