config.nix/modules/window_manager/hyprland.nix

40 lines
762 B
Nix

{
config,
lib,
pkgs,
...
}:
{
options = {
window_manager = {
hyprland.enable = lib.mkEnableOption "enable hyprland";
};
};
config = lib.mkIf config.window_manager.hyprland.enable {
xdg.portal = {
enable = true;
configPackages = [ pkgs.xdg-desktop-portal-hyprland ];
extraPortals = [ pkgs.xdg-desktop-portal-hyprland ];
};
programs = {
hyprlock = {
enable = true;
};
};
wayland.windowManager.hyprland = {
enable = true;
settings = {
exec-once = [
];
"$mod" = "SUPER";
bind = [
"$mod, D, exec, walker"
"$mod, return, exec, kitty"
];
};
};
home.sessionVariables.NIXOS_OZONE_WL = "1";
};
}