From e7948146e71c590257fa001411a9a47c5c1221bf Mon Sep 17 00:00:00 2001 From: Jordan Holt Date: Sun, 15 Jun 2025 11:12:21 +0100 Subject: [PATCH] hyprland: add hyprbars --- flake.lock | 31 +++++++++++++++++++ flake.nix | 4 +++ .../optional/graphical/hyprland/default.nix | 4 ++- 3 files changed, 38 insertions(+), 1 deletion(-) diff --git a/flake.lock b/flake.lock index b84fa90..ea02f5a 100644 --- a/flake.lock +++ b/flake.lock @@ -488,6 +488,36 @@ "type": "github" } }, + "hyprland-plugins": { + "inputs": { + "hyprland": [ + "hyprland" + ], + "nixpkgs": [ + "hyprland-plugins", + "hyprland", + "nixpkgs" + ], + "systems": [ + "hyprland-plugins", + "hyprland", + "systems" + ] + }, + "locked": { + "lastModified": 1749980366, + "narHash": "sha256-sB2jmzoZgxMOpLsw4EfQyp2NbO3qhorR6gAdbNXHxOk=", + "owner": "hyprwm", + "repo": "hyprland-plugins", + "rev": "4783860953a0777fee43d45fee0df9173f9e8c9e", + "type": "github" + }, + "original": { + "owner": "hyprwm", + "repo": "hyprland-plugins", + "type": "github" + } + }, "hyprland-protocols": { "inputs": { "nixpkgs": [ @@ -954,6 +984,7 @@ "gitea-github-theme": "gitea-github-theme", "home-manager": "home-manager_2", "hyprland": "hyprland", + "hyprland-plugins": "hyprland-plugins", "impermanence": "impermanence", "kvlibadwaita": "kvlibadwaita", "nixos-hardware": "nixos-hardware", diff --git a/flake.nix b/flake.nix index 6baea95..c36b2c8 100644 --- a/flake.nix +++ b/flake.nix @@ -16,6 +16,10 @@ inputs.nixpkgs.follows = "nixpkgs"; }; hyprland.url = "github:hyprwm/Hyprland"; + hyprland-plugins = { + url = "github:hyprwm/hyprland-plugins"; + inputs.hyprland.follows = "hyprland"; + }; firefox-gnome-theme = { url = "github:rafaelmardojai/firefox-gnome-theme"; flake = false; diff --git a/users/jordan/common/optional/graphical/hyprland/default.nix b/users/jordan/common/optional/graphical/hyprland/default.nix index b242cc7..147ce6f 100644 --- a/users/jordan/common/optional/graphical/hyprland/default.nix +++ b/users/jordan/common/optional/graphical/hyprland/default.nix @@ -61,7 +61,9 @@ in package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland; portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland; - # plugins = [ hypr-dynamic-cursors ]; # https://github.com/VirtCode/hypr-dynamic-cursors + plugins = [ + inputs.hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}.hyprbars + ]; settings = { general = { gaps_in = 5;