This repository has no description
Something went wrong. Try again.
3.8 kB · 125 lines
Nix
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126{ osConfig, config, pkgs, lib, ...}:let cfg = osConfig.sidonia; inherit (config.wayland.desktopManager.sidonia) window; xwayland-satellite = pkgs.xwayland-satellite-unstable.override { patches = [ (pkgs.fetchurl { url = "https://github.com/Supreeeme/xwayland-satellite/pull/514.patch"; hash = "sha256-SyOBar3y9zgNtQ4RY+cn/MBDSko+JZcq7GVYiHJXIX0="; }) ]; };inlib.mkIf (cfg.desktop.enable && (cfg.desktop.compositor == "niri")) { home.packages = [ xwayland-satellite pkgs.wl-clipboard ]; wayland.windowManager.niri = { enable = true; package = osConfig.programs.niri.package; settings = lib.mkMerge [ { # see: https://codeberg.org/BANanaD3V/niri-nix/src/branch/main/home-options.md environment = builtins.mapAttrs (n: v: lib.mkDefault v) { CLUTTER_BACKEND = "wayland"; ELECTRON_ENABLE_WAYLAND = "1"; ELECTRON_OZONE_PLATFORM_HINT = "wayland"; ELM_DISPLAY = "wl"; MOZ_DBUS_REMOTE = "1"; MOZ_DISABLE_RDD_SANDBOX = "1"; MOZ_ENABLE_WAYLAND = "1"; NIXOS_OZONE_WL = "1"; QT_AUTO_SCREEN_SCALE_FACTOR = "1"; QT_ENABLE_HIGHDPI_SCALING = "1"; QT_QPA_PLATFORM = "wayland;xcb"; QT_QPA_PLATFORMTHEME = "gtk3"; QT_WAYLAND_DISABLE_WINDOWDECORATION = "1"; SDL_VIDEODRIVER = "wayland,x11"; SDL_VIDEO_DRIVER = "wayland,x11"; _JAVA_AWT_WM_NONREPARENTING = "1"; }; cursor = { hide-when-typing = [ ]; hide-after-inactive-ms = lib.mkDefault 5000; xcursor-size = config.home.pointerCursor.size; };
input = { warp-mouse-to-focus._props.mode = lib.mkDefault "center-xy"; mouse.accel-profile = "flat"; touchpad = { click-method = "clickfinger"; drag = true; dwt = [ ]; dwtp = [ ]; natural-scroll = [ ]; scroll-method = "two-finger"; tap = [ ]; tap-button-map = "left-right-middle"; }; };
xwayland-satellite.path = lib.mkDefault (lib.getExe xwayland-satellite);
prefer-no-csd = [ ]; window-rule = [ { open-fullscreen = false; shadow.off = [ ]; draw-border-with-background = false; opacity = 1.; geometry-corner-radius = window.decoration.rounding; } { match._props.is-focused = false; opacity = window.decoration.opacity.dec; } ]; layer-rule = [ { shadow.off = [ ]; } ]; layout = { empty-workspace-above-first = [ ]; always-center-single-column = [ ]; shadow.off = [ ]; focus-ring = { on = [ ]; width = lib.mkDefault window.decoration.borderWidth; }; border = { off = [ ]; width = lib.mkDefault window.decoration.borderWidth; }; default-column-width.proportion = lib.mkDefault 0.5; preset-column-widths._children = [ { proportion = 1. / 3.; } { proportion = 1. / 2.; } { proportion = 2. / 3.; } { proportion = 1.; } ]; }; overview.workspace-shadow.off = [ ]; hotkey-overlay.skip-at-startup = [ ]; gestures.hot-corners.off = [ ]; } (lib.mkIf (!cfg.legacyGpu) { window-rule = [ { background-effect.blur = true; popups.background-effect.xray = false; } { match._props.is-floating = true; background-effect.xray = false; } ]; }) ]; };}