nix-config/home/ludwig.nix

50 lines
1.3 KiB
Nix
Raw Normal View History

{ pkgs, ... }: {
2024-02-02 19:59:41 +01:00
imports = [
./global
./features/desktop/awesome
./features/desktop/common/alacritty.nix
./features/desktop/hyprland
2024-05-24 14:06:43 +02:00
./features/desktop/gnome
2024-02-02 19:59:41 +01:00
./features/coding
];
home.packages = with pkgs; [ nextcloud-client ];
2024-05-24 14:06:43 +02:00
2024-02-02 19:59:41 +01:00
nixpkgs = {
config = {
permittedInsecurePackages = [
"electron-25.9.0"
2024-05-24 14:06:15 +02:00
"nix-2.15.3"
2024-02-02 19:59:41 +01:00
];
};
};
wayland.windowManager.hyprland = {
settings = {
exec-once = [
"${pkgs.batsignal}/bin/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, ${pkgs.brightnessctl}/bin/brightnessctl set +10%"
", XF86MonBrightnessDown, exec, ${pkgs.brightnessctl}/bin/brightnessctl set 10%-"
];
};
};
programs.waybar = {
settings = {
mainBar = {
modules-right = [ "tray" "memory" "cpu" "battery" "clock" ];
battery = {
format = "{capacity}% {icon} ";
format-icons = [ "" "" "" "" "" ];
max-length = 25;
};
};
};
};
2024-02-02 19:59:41 +01:00
}