🚀 add hyprland module

This commit is contained in:
Moritz Böhme 2022-11-25 10:24:29 +01:00
parent ad7ba759a6
commit 9918bfe0c6
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
11 changed files with 318 additions and 11 deletions

View file

@ -1,6 +1,12 @@
{ inputs }: final: prev: {
nixpkgs-review-checks = inputs.nixpkgs-review-checks.defaultPackage."${prev.system}";
agenix = inputs.agenix.defaultPackage."${prev.system}";
waybar-hyprland = prev.waybar.overrideAttrs (old: {
postPatch = old.postPatch or "" + ''
${final.gnused}/bin/sed -i 's,zext_workspace_handle_v1_activate(workspace_handle_);,const std::string command = "${final.hyprland}/bin/hyprctl dispatch workspace " + name_;\n\tsystem(command.c_str());,g' src/modules/wlr/workspace_manager.cpp
'';
mesonFlags = old.mesonFlags or [ ] ++ [ "-Dexperimental=true" ];
});
master = import inputs.master {
inherit (prev) system;
config.allowUnfree = true;