Add hyprland plugins to nixos

This commit is contained in:
2025-08-28 19:54:00 +03:00
parent 60dccc3a7f
commit f95321718e
2 changed files with 19 additions and 2 deletions

View File

@@ -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: {

View File

@@ -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";