1
1
Fork 0
nixos/options/custom/desktops/hyprland/default.nix
Myned f510e28376
xdg: remove gnome portal
Signed-off-by: Myned <dev@bjork.tech>
2025-02-16 20:30:54 -06:00

63 lines
1.3 KiB
Nix

{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.custom.desktops.hyprland;
hm = config.home-manager.users.${config.custom.username};
in {
options.custom.desktops.hyprland = {
enable = mkOption {default = false;};
};
config = mkIf cfg.enable {
custom = {
desktops = mkIf config.custom.full {
hyprland = {
binds.enable = true;
keywords.enable = true;
monitors.enable = true;
plugins.enable = true;
rules.enable = true;
variables.enable = true;
};
gnome = {
enable = true;
minimal = true;
};
};
programs = {
uwsm.enable = true;
};
};
# https://wiki.hyprland.org
# https://github.com/hyprwm/Hyprland
programs.hyprland = {
enable = true;
package = hm.wayland.windowManager.hyprland.finalPackage;
# BUG: Some apps launched via exec cause session to end, wrap in uwsm to isolate scope
# https://github.com/Vladimir-csp/uwsm/issues/45
#?? uwsm app -- COMMAND
withUWSM = true;
};
xdg.portal = {
enable = true;
extraPortals = [pkgs.xdg-desktop-portal-gtk];
};
home-manager.sharedModules = [
{
wayland.windowManager.hyprland = {
enable = true;
};
}
];
};
}