59 lines
1.2 KiB
Nix
59 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
|
|
hyprcursor
|
|
hyprsunset
|
|
hyprpicker
|
|
hyprshot
|
|
kitty
|
|
|
|
# Notification
|
|
libnotify
|
|
swaynotificationcenter
|
|
|
|
qt5.qtwayland
|
|
qt6.qtwayland
|
|
swayidle
|
|
sway-audio-idle-inhibit # Prevent idle when playing audio
|
|
swaylock-effects
|
|
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="
|
|
];
|
|
};
|
|
};
|
|
|
|
}
|