From 92caa1e781fd94ee98387305d0749f071fb86f1f Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Thu, 11 Apr 2024 22:55:51 +0100 Subject: [PATCH] Add initial (and untested) river example config --- home/river/default.nix | 51 ++++++++++++++++++++++++++++++++++++++++++ system/river.nix | 7 ++++++ 2 files changed, 58 insertions(+) create mode 100644 home/river/default.nix create mode 100644 system/river.nix diff --git a/home/river/default.nix b/home/river/default.nix new file mode 100644 index 00000000..bbdfd195 --- /dev/null +++ b/home/river/default.nix @@ -0,0 +1,51 @@ +{config, ...}: { + imports = [../desktop.nix]; + wayland.windowManager.river = { + enable = true; + xwayland.enable = true; + extraSessionVariables = { + QT_AUTO_SCREEN_SCALE_FACTOR = "1"; + QT_QPA_PLATFORM = "wayland"; + QT_WAYLAND_DISABLE_WINDOWDECORATION = "1"; + MOZ_ENABLE_WAYLAND = "1"; + }; + systemd = { + enable = true; + variables = [ + "DISPLAY" + "WAYLAND_DISPLAY" + "XDG_CURRENT_DESKTOP" + "NIXOS_OZONE_WL" + "XCURSOR_THEME" + "XCURSOR_SIZE" + ]; + }; + settings = { + # These are currently example settings + border-width = 2; + declare-mode = [ + "locked" + "normal" + "passthrough" + ]; + input = { + pointer-foo-bar = { + accel-profile = "flat"; + events = true; + pointer-accel = -0.3; + tap = false; + }; + }; + map = { + normal = { + "Alt Q" = "close"; + }; + }; + rule-add = {}; + set-cursor-warp = "on-output-change"; + set-repeat = "50 300"; + spawn = []; + xcursor-theme = with config.gtk.cursorTheme; "${name} ${toString size}"; + }; + }; +} diff --git a/system/river.nix b/system/river.nix new file mode 100644 index 00000000..d45605d7 --- /dev/null +++ b/system/river.nix @@ -0,0 +1,7 @@ +{}: { + imports = [./desktop.nix]; + programs.river = { + enable = true; + extraPackages = []; + }; +}