feat(compositors)!: Add niri
According to its github page, niri is "A scrollable-tiling Wayland
compositor". Myself and coded have been looking for alternatives to
hyprland for stability and community reasons, and niri looks reasonable
for us
It's possible we'll remove hyprland altogether. If we do, we plan to
still maintain a more traditional compositor (e.g. swayfx)
BREAKING-CHANGE: This patch renames some hyprland options
Change-Id: I170dde769b55ebb32a3212a54012443fb4d0faf8
Reviewed-on: https://git.clicks.codes/c/Chimera/NixFiles/+/713
Reviewed-by: Samuel Shuert <coded@clicks.codes>
Tested-by: Samuel Shuert <coded@clicks.codes>
diff --git a/modules/home/wayland/default.nix b/modules/home/wayland/default.nix
new file mode 100644
index 0000000..3ea8d65
--- /dev/null
+++ b/modules/home/wayland/default.nix
@@ -0,0 +1,43 @@
+{
+ lib,
+ config,
+ ...
+}: {
+ options.chimera = {
+ wayland.enable = lib.mkOption {
+ type = lib.types.bool;
+ description = "Enable generic options which are useful for all wayland compositors";
+ default = false;
+ internal = true;
+ };
+ input.mouse.scrolling.natural = lib.mkEnableOption "Enable natural scrolling";
+ input.touchpad.scrolling.natural = lib.mkOption {
+ type = lib.types.bool;
+ description = "Enable natural scrolling";
+ default = config.chimera.input.mouse.scrolling.natural;
+ };
+ input.keyboard = {
+ layout = lib.mkOption {
+ type = lib.types.str;
+ description = "Keyboard layouts, comma seperated";
+ example = "us,de";
+ default = "us";
+ };
+ variant = lib.mkOption {
+ type = lib.types.nullOr lib.types.str;
+ description = "Keyboard layout variants, comma seperated";
+ example = "dvorak";
+ default = null;
+ };
+ };
+
+ input.keybinds.alternativeSearch.enable = lib.mkEnableOption "Use alt + space or SUPER + D to open search";
+
+ nvidia.enable = lib.mkEnableOption "Enable NVIDIA support";
+ };
+
+ config = lib.mkIf config.chimera.wayland.enable {
+ chimera.waybar.enable = lib.mkDefault true;
+ chimera.notifications.mako.enable = true;
+ };
+}