From df7da8e6a13e63e4fd3699b43af1e6b3bb0746e0 Mon Sep 17 00:00:00 2001 From: Thomas Syms Date: Thu, 15 Aug 2024 11:48:51 -0300 Subject: [PATCH] Actually, I;m still doing hyprland --- flake.nix | 2 +- home/desktops/hyprland/default.nix | 11 +++++++++++ hosts/Equinox/default.nix | 2 +- modules/hyprland.nix | 12 +++++++++++- 4 files changed, 24 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 5b6acb7..f430bff 100644 --- a/flake.nix +++ b/flake.nix @@ -100,7 +100,7 @@ ./home ./home/shell ./home/applications - ./home/desktops/kde + ./home/desktops/hyprland ]; }; } diff --git a/home/desktops/hyprland/default.nix b/home/desktops/hyprland/default.nix index 85e5dd1..5ce0ca3 100644 --- a/home/desktops/hyprland/default.nix +++ b/home/desktops/hyprland/default.nix @@ -14,6 +14,11 @@ settings = { "$mod" = "SUPER"; + exec-once = [ + # run once on startup + "ags" + ]; + bindm = [ # mouse movements "$mod, mouse:272, movewindow" @@ -35,4 +40,10 @@ accountsservice ]; }; + + programs.rofi = { + enable = true; + package = pkgs.rofi; + theme = pkgs.rofi-themes.hyprland; + }; } diff --git a/hosts/Equinox/default.nix b/hosts/Equinox/default.nix index f3645de..fc642b4 100644 --- a/hosts/Equinox/default.nix +++ b/hosts/Equinox/default.nix @@ -22,7 +22,7 @@ in { ../../modules/containers.nix ../../modules/virtualization.nix ../../modules/harden.nix - ../../modules/kde.nix + ../../modules/hyprland.nix ]; # Set networking diff --git a/modules/hyprland.nix b/modules/hyprland.nix index 0fd494f..d5fdd22 100644 --- a/modules/hyprland.nix +++ b/modules/hyprland.nix @@ -12,11 +12,21 @@ environment.systemPackages = with pkgs; [ greetd.tuigreet - xdg-desktop-portal-hyprland ]; programs.hyprland = { enable = true; xwayland.enable = true; + portalPackage = pkgs.xdg-desktop-portal-hyprland; + }; + + services.dbus.enable = true; + xdg.portal = { + enable = true; + wlr.enable = true; + extraPortals = [ + pkgs.xdg-desktop-portal-gtk + pkgs.xdg-desktop-portal-hyprland + ]; }; }