Niri config translation to nix

This commit is contained in:
KnightArtorias 2026-05-19 00:37:36 +00:00
parent 2ca5f79bc8
commit 56415c68e5
3 changed files with 0 additions and 105 deletions

View file

@ -1,25 +0,0 @@
{ self, inputs, ... }: {
flake.nixosModules.bluetooth = { inputs, ... }: {
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
settings = {
General = {
# Shows battery charge of connected devices on supported
# Bluetooth adapters. Defaults to 'false'.
Experimental = true;
# When enabled other devices can connect faster to us, however
# the tradeoff is increased power consumption. Defaults to
# 'false'.
FastConnectable = true;
};
Policy = {
# Enable all controllers when they are found. This includes
# adapters present on start as well as adapters that are plugged
# in later on. Defaults to 'true'.
AutoEnable = true;
};
};
};
};
}

View file

@ -1,10 +0,0 @@
{ self, inputs, ... }: {
flake.nixosModules.ckb-next = { inputs, ... }: {
hardware.ckb-next = {
enable = true;
package = pkgs.ckb-next.overrideAttrs (old: {
cmakeFlags = (old.cmakeFlags or [ ]) ++ [ "-DUSE_DBUS_MENU=0" ];
});
};
};
}

View file

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