2024-09-08 19:22:14 -05:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
2024-09-09 19:00:59 -05:00
|
|
|
pkgs,
|
2024-09-08 19:22:14 -05:00
|
|
|
...
|
|
|
|
}:
|
2024-09-12 20:50:53 -05:00
|
|
|
with lib; let
|
2024-09-08 19:22:14 -05:00
|
|
|
cfg = config.custom.desktops.hyprland;
|
2025-02-13 22:04:16 -06:00
|
|
|
hm = config.home-manager.users.${config.custom.username};
|
2024-09-12 20:50:53 -05:00
|
|
|
in {
|
2025-02-13 22:04:16 -06:00
|
|
|
options.custom.desktops.hyprland = {
|
|
|
|
enable = mkOption {default = false;};
|
|
|
|
};
|
2024-09-08 19:22:14 -05:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2025-02-15 15:59:54 -06:00
|
|
|
custom = {
|
|
|
|
desktops = mkIf config.custom.full {
|
2025-02-15 16:01:50 -06:00
|
|
|
hyprland = {
|
|
|
|
binds.enable = true;
|
|
|
|
keywords.enable = true;
|
|
|
|
monitors.enable = true;
|
|
|
|
plugins.enable = true;
|
|
|
|
rules.enable = true;
|
|
|
|
variables.enable = true;
|
|
|
|
};
|
2024-12-26 19:06:11 -05:00
|
|
|
|
2025-02-15 16:01:50 -06:00
|
|
|
gnome = {
|
|
|
|
enable = true;
|
|
|
|
minimal = true;
|
|
|
|
};
|
2024-12-26 19:06:11 -05:00
|
|
|
};
|
2024-09-08 19:22:14 -05:00
|
|
|
|
2025-02-15 15:59:54 -06:00
|
|
|
programs = {
|
|
|
|
uwsm.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2025-02-13 22:04:16 -06:00
|
|
|
# https://wiki.hyprland.org
|
2024-09-08 19:22:14 -05:00
|
|
|
# https://github.com/hyprwm/Hyprland
|
2025-02-13 22:04:16 -06:00
|
|
|
programs.hyprland = {
|
|
|
|
enable = true;
|
|
|
|
package = hm.wayland.windowManager.hyprland.finalPackage;
|
2025-02-15 15:59:54 -06:00
|
|
|
|
|
|
|
# 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
|
2025-02-13 22:04:16 -06:00
|
|
|
withUWSM = true;
|
|
|
|
};
|
2024-09-08 19:22:14 -05:00
|
|
|
|
2024-09-09 19:00:59 -05:00
|
|
|
xdg.portal = {
|
|
|
|
enable = true;
|
2025-02-15 16:01:50 -06:00
|
|
|
|
|
|
|
extraPortals = with pkgs; [
|
|
|
|
xdg-desktop-portal-gnome
|
|
|
|
xdg-desktop-portal-gtk
|
|
|
|
];
|
2024-09-09 19:00:59 -05:00
|
|
|
};
|
|
|
|
|
2025-02-13 22:04:16 -06:00
|
|
|
home-manager.sharedModules = [
|
|
|
|
{
|
|
|
|
wayland.windowManager.hyprland = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
2024-09-08 19:22:14 -05:00
|
|
|
};
|
|
|
|
}
|