nixos/modules/features/niri.nix
2026-05-17 18:21:44 +00:00

70 lines
1.1 KiB
Nix

{ self, inputs, ... }: {
flake.wrappersModules.niri = {
config, lib, pkgs, ...
}: {
options.terminal = lib.mkOption {
type = lib.types.str;
default = "alacritty";
};
config = {
settings = let
noctaliaExe = lib.getExe self.packages.${config.pkgs.stdenv.hostPlatform.system}.noctalias-shell;
in {
prefer-no-csd = null;
binds = {
};
output = {
HDMI-A-1 = {
mode = "1920x1080@60.00";
position = {
x = 0;
y = 180;
};
};
DP-2 = {
};
DP-1 = {
};
};
input = {
keyboard = {
numlock = null;
repeat-rate = 35;
repeat-delay = 500;
};
touchpad = {
tap = null;
natural-scroll = null;
};
mouse = {
accel-profile = "flat";
};
focus-follows-mouse = null;
max-scroll-amount = "0%";
};
};
};
};
perSystem = { pkgs, ... }: {
packages.niri = inputs.wrapper-modules.wrappers.niri.wrap {
inherit pkgs;
imports = [ self.wrapperModules.niri ];
};
};
}