summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorKyren223 <contact@kyren.codes>2025-08-28 19:54:00 +0300
committerKyren223 <contact@kyren.codes>2025-08-28 19:54:00 +0300
commitf95321718ef1142da26bc3c76cb074df3d055252 (patch)
treefa2640111ecb59dc8f578517903250ce3c196a3b /modules
parent60dccc3a7fe036b2d10e294ff392108a5ce7b5d7 (diff)
Add hyprland plugins to nixos
Diffstat (limited to 'modules')
-rw-r--r--modules/display.nix15
1 files changed, 13 insertions, 2 deletions
diff --git a/modules/display.nix b/modules/display.nix
index 140e131..b439c6b 100644
--- a/modules/display.nix
+++ b/modules/display.nix
@@ -1,6 +1,17 @@
-{ ... }: {
-
+{ pkgs, lib, ... }:
+ with lib; let
+ hyprPluginPkgs = inputs.hyprland-plugins.packages.${pkgs.system};
+ hypr-plugin-dir = pkgs.symlinkJoin {
+ name = "hyrpland-plugins";
+ paths = with hyprPluginPkgs; [
+ hyprbars
+ ];
+ };
+in {
+
programs.hyprland.enable = true;
+ environment.sessionVariables = { HYPR_PLUGIN_DIR = hypr-plugin-dir; };
+
# Optional, hint electron apps to use wayland:
# environment.sessionVariables.NIXOS_OZONE_WL = "1";