diff options
author | Freya Murphy <freya@freyacat.org> | 2025-06-27 16:39:14 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-06-27 16:39:14 -0400 |
commit | 2e4c4298cf84f94d68387e8076fd430e9968ce6c (patch) | |
tree | 2a43fa6d4659fe2585c75aeec3ee4d5e0a42de2e /modules/desktops/hyprland/default.nix | |
parent | fmt (diff) | |
download | dotfiles-nix-2e4c4298cf84f94d68387e8076fd430e9968ce6c.tar.gz dotfiles-nix-2e4c4298cf84f94d68387e8076fd430e9968ce6c.tar.bz2 dotfiles-nix-2e4c4298cf84f94d68387e8076fd430e9968ce6c.zip |
refactor
Diffstat (limited to 'modules/desktops/hyprland/default.nix')
-rw-r--r-- | modules/desktops/hyprland/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/modules/desktops/hyprland/default.nix b/modules/desktops/hyprland/default.nix new file mode 100644 index 0000000..cc1122c --- /dev/null +++ b/modules/desktops/hyprland/default.nix @@ -0,0 +1,40 @@ +{ + inputs, + config, + system, + lib, + ... +}: let + inherit (lib) mkIf mkDefault; + cfg = config.desktops; +in { + imports = [ + ./binds.nix + ./env.nix + ./idle.nix + ./plugins.nix + ./settings.nix + ./wallpaper.nix + ]; + + config = mkIf cfg.hyprland { + desktops.wayland = true; + default.session = mkDefault "hyprland-session.target"; + + xdg.portal = { + extraPortals = [ + inputs.hyprland.packages.${system}.xdg-desktop-portal-hyprland + ]; + }; + + home-manager.users.${config.user} = { + wayland.windowManager.hyprland = { + enable = true; + package = inputs.hyprland.packages.${system}.hyprland; + + xwayland.enable = true; + systemd.enable = true; + }; + }; + }; +} |