nix-conf/system/modules/hyprland.nix
2025-01-03 22:37:31 +08:00

61 lines
1.2 KiB
Nix

{ pkgs, inputs, ... }:
{
programs.hyprland = {
enable = true;
withUWSM = true;
package = inputs.hyprland.packages."${pkgs.system}".hyprland;
portalPackage = inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland;
};
xdg.portal = {
enable = true;
wlr.enable = true;
xdgOpenUsePortal = true;
extraPortals = [
pkgs.xdg-desktop-portal-gtk
pkgs.xdg-desktop-portal-wlr
];
};
environment.sessionVariables = {
NIXOS_OZONE_WL = "1";
WLR_NO_HARDWARE_CURSORS = "1";
};
environment.systemPackages = with pkgs; [
pyprland
hyprsunset
hyprpicker
hyprshot
kitty
# Notification
libnotify
swaynotificationcenter
qt5.qtwayland
qt6.qtwayland
wlogout
wl-clipboard
rofi-wayland-unwrapped
waybar
];
nix = {
settings = {
warn-dirty = false;
experimental-features = [
"nix-command"
"flakes"
];
auto-optimise-store = true;
substituters = [ "https://hyprland.cachix.org" ];
trusted-public-keys = [
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
];
};
};
}