dotfiles/homes/x86_64-linux/christopher@cobalt/niri/settings.nix
2025-12-12 10:39:49 +01:00

62 lines
1.2 KiB
Nix

{
config,
pkgs,
...
}: {
programs.niri = {
enable = true;
settings = {
prefer-no-csd = true;
layout = {
background-color = "#ac8887";
focus-ring.enable = true;
gaps = 24;
shadow = {
enable = true;
};
};
window-rules = [
{
clip-to-geometry = true;
geometry-corner-radius = {
bottom-left = 12.0;
bottom-right = 0.0;
top-left = 0.0;
top-right = 12.0;
};
}
{
matches = [{is-focused = true;}];
focus-ring = {
width = 2;
};
}
];
input = {
keyboard.xkb.layout = "en";
};
cursor = {
size = 0;
theme = "Adwaita";
};
environment = {
CLUTTER_BACKEND = "wayland";
GDK_BACKEND = "wayland.x11";
MOZ_ENABLE_WAYLAND = "1";
QT_QPA_PLATFORM = "wayland";
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
ELECTRON_OZONE_PLATFORM_HINT = "auto";
XDG_SESSION_TYPE = "wayland";
XDG_CURRENT_DESKTOP = "niri";
DISPLAY = ":0";
};
};
};
}