oizys/modules/hyprland.nix

39 lines
787 B
Nix
Raw Normal View History

2024-01-23 11:51:13 -06:00
{
inputs,
pkgs,
2024-01-23 15:50:42 -06:00
config,
lib,
2024-01-23 11:51:13 -06:00
...
2024-01-23 19:13:42 -06:00
}: let
2024-01-23 15:50:42 -06:00
inherit (lib) mkIf;
cfg = config.programs.hyprland;
2024-01-23 19:13:42 -06:00
in {
2024-01-23 15:50:42 -06:00
config = mkIf cfg.enable {
2024-01-23 19:13:42 -06:00
security.pam.services.swaylock = {};
programs.hyprland.package = inputs.hyprland.packages.${pkgs.system}.default;
# Optional, hint electron apps to use wayland:
environment.sessionVariables.NIXOS_OZONE_WL = "1";
environment.systemPackages = with pkgs; [
swaylock
brightnessctl
2024-01-23 15:50:42 -06:00
2024-01-23 19:13:42 -06:00
# notifications
libnotify
dunst
2024-01-23 11:51:13 -06:00
2024-01-23 19:13:42 -06:00
# screenshots
inputs.hyprland-contrib.packages.${pkgs.system}.grimblast
grim
slurp
2024-01-23 11:51:13 -06:00
2024-01-23 19:13:42 -06:00
eww-wayland
rofi-wayland
hyprpaper
2024-01-23 15:50:42 -06:00
2024-01-23 19:13:42 -06:00
catppuccin-cursors.mochaDark
pavucontrol
];
nixpkgs.overlays = [inputs.nixpkgs-wayland.overlay];
};
2024-01-23 11:51:13 -06:00
}