From f95321718ef1142da26bc3c76cb074df3d055252 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Thu, 28 Aug 2025 19:54:00 +0300 Subject: Add hyprland plugins to nixos --- flake.nix | 6 ++++++ modules/display.nix | 15 +++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index ea7e9d7..e5afd0a 100644 --- a/flake.nix +++ b/flake.nix @@ -24,6 +24,12 @@ url = "github:kyren223/eko/"; inputs.nixpkgs.follows = "nixpkgs"; }; + + hyprland.url = "github:hyprwm/Hyprland"; + hyprland-plugins = { + url = "github:hyprwm/hyprland-plugins"; + inputs.hyprland.follows = "hyprland"; + }; }; outputs = { self, nixpkgs, nixpkgs-emoji-pin, ... }@inputs: { 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"; -- cgit v1.3.1