From cf5be812bdc889f10ada644e4736138c5757e1e9 Mon Sep 17 00:00:00 2001 From: Daniel Thwaites Date: Sun, 17 Nov 2024 13:10:42 +0000 Subject: [PATCH] hyprland: add testbed (#611) There are currently some graphical bugs caused by the VM. [1] [1]: https://github.com/hyprwm/Hyprland/issues/1056 Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com> --- flake.lock | 6 +++--- modules/hyprland/testbed.nix | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 modules/hyprland/testbed.nix diff --git a/flake.lock b/flake.lock index 103a45125..62fd6b276 100644 --- a/flake.lock +++ b/flake.lock @@ -142,11 +142,11 @@ ] }, "locked": { - "lastModified": 1724435763, - "narHash": "sha256-UNky3lJNGQtUEXT2OY8gMxejakSWPTfWKvpFkpFlAfM=", + "lastModified": 1730837930, + "narHash": "sha256-0kZL4m+bKBJUBQse0HanewWO0g8hDdCvBhudzxgehqc=", "owner": "nix-community", "repo": "home-manager", - "rev": "c2cd2a52e02f1dfa1c88f95abeb89298d46023be", + "rev": "2f607e07f3ac7e53541120536708e824acccfaa8", "type": "github" }, "original": { diff --git a/modules/hyprland/testbed.nix b/modules/hyprland/testbed.nix new file mode 100644 index 000000000..36f0be0dd --- /dev/null +++ b/modules/hyprland/testbed.nix @@ -0,0 +1,15 @@ +{ lib, pkgs, ... }: + +{ + environment.loginShellInit = lib.getExe pkgs.hyprland; + programs.hyprland.enable = true; + + home-manager.sharedModules = [{ + wayland.windowManager.hyprland = { + enable = true; + + # We need something to open a window so that we can check the window borders + settings.bind = [ "ALT, RETURN, exec, ${lib.getExe pkgs.foot}" ]; + }; + }]; +}