Messing with niri config

This commit is contained in:
KnightArtorias 2026-05-17 18:21:44 +00:00
parent 6de59d6eaa
commit 2ca5f79bc8
4 changed files with 71 additions and 1 deletions

70
modules/features/niri.nix Normal file
View file

@ -0,0 +1,70 @@
{ 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 ];
};
};
}

View file

@ -1,5 +1,5 @@
{ self, inputs, ... }: { { self, inputs, ... }: {
flake.nixosConfigurations.crow = inputs.nixpkgs.lib.nixosSystem { flake.nixosConfigurations.crow = inputs.nixpkgs.lib.nixosSystem {
modules= [ ]; modules= [ self.nixosModules.crowConfiguration ];
}; };
} }