1
1
Fork 0
nixos/options/custom/desktops/hyprland/default.nix
Myned 48e84a857d
gnome: add minimal option with core-os-services
Signed-off-by: Myned <dev@bjork.tech>
2024-12-26 19:06:11 -05:00

47 lines
1,008 B
Nix

{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.custom.desktops.hyprland;
in {
options.custom.desktops.hyprland.enable = mkOption {default = false;};
config = mkIf cfg.enable {
custom.desktops = mkIf config.custom.full {
hyprland = {
binds.enable = true;
plugins.enable = true;
rules.enable = true;
settings.enable = true;
};
gnome = {
enable = true;
minimal = true;
};
};
# https://github.com/hyprwm/Hyprland
programs.hyprland.enable = true;
xdg.portal = {
enable = true;
extraPortals = [pkgs.xdg-desktop-portal-gtk];
# Prefer hyprland over gtk portal
config.common.default = [
"hyprland"
"gtk"
];
};
# https://wiki.hyprland.org
home-manager.users.${config.custom.username}.wayland.windowManager.hyprland = {
enable = true;
systemd.variables = ["--all"]; # Import some environment variables into session
};
};
}