summaryrefslogtreecommitdiff
path: root/modules/desktops/hyprland/default.nix
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-06-27 16:39:14 -0400
committerFreya Murphy <freya@freyacat.org>2025-06-27 16:39:14 -0400
commit2e4c4298cf84f94d68387e8076fd430e9968ce6c (patch)
tree2a43fa6d4659fe2585c75aeec3ee4d5e0a42de2e /modules/desktops/hyprland/default.nix
parentfmt (diff)
downloaddotfiles-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.nix40
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;
+ };
+ };
+ };
+}