summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorKyren223 <contact@kyren.codes>2025-08-28 22:17:30 +0300
committerKyren223 <contact@kyren.codes>2025-08-28 22:17:30 +0300
commit06e8b5e4f9f0d6d030eb032cfe91c1fbeccc219d (patch)
treede3b9b7f4c39b28779d67f6e6e8537092742d7a6 /modules
parent8d37a81ec5cc5cff721159a15ffc8ff7d11ab527 (diff)
Added hyprbars
Diffstat (limited to 'modules')
-rw-r--r--modules/display.nix34
1 files changed, 22 insertions, 12 deletions
diff --git a/modules/display.nix b/modules/display.nix
index e8598f8..58fb217 100644
--- a/modules/display.nix
+++ b/modules/display.nix
@@ -1,20 +1,30 @@
-{ pkgs, lib, inputs, ... }:
- with lib; let
- hyprPluginPkgs = inputs.hyprland-plugins.packages.${pkgs.system};
- hypr-plugin-dir = pkgs.symlinkJoin {
- name = "hyrpland-plugins";
- paths = with hyprPluginPkgs; [
- hyprbars
- ];
- };
-in {
+{
+ pkgs,
+ lib,
+ inputs,
+ ...
+}:
+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;
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
- portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
+ portalPackage =
+ inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
+ };
+ environment.sessionVariables = {
+ HYPR_PLUGIN_DIR = hypr-plugin-dir;
};
- environment.sessionVariables = { HYPR_PLUGIN_DIR = hypr-plugin-dir; };
# Optional, hint electron apps to use wayland:
# environment.sessionVariables.NIXOS_OZONE_WL = "1";