niri: formatting

This commit is contained in:
Bloxx12 2025-07-25 16:59:12 +02:00
commit 000f4aa56b

View file

@ -11,10 +11,11 @@ let
inherit (config.modules.system) isGraphical;
inherit (config.meta.mainUser) username;
cfg = config.modules.desktops.niri;
niri = pkgs.callPackage (_: pkgs.rustPlatform.buildRustPackage {
niri = pkgs.callPackage (
_:
pkgs.rustPlatform.buildRustPackage {
pname = "niri";
version = "unstable";
@ -32,6 +33,7 @@ let
strictDeps = true;
doInstallCheck = false;
doCheck = false;
nativeBuildInputs = with pkgs; [
rustPlatform.bindgenHook
@ -86,6 +88,12 @@ let
"-lwayland-client"
"-Wl,--pop-state"
]
++ [
"-Ctarget-cpu=native"
"-Cpanic=abort"
"-Clto=thin"
"-Cembed-bitcode=yes"
]
);
};
@ -95,7 +103,8 @@ let
meta.mainProgram = "niri";
}) { };
}
) { };
in
{
options.modules.desktops.niri.enable = mkEnableOption "Niri, a scolling tiling wayland compositor";
@ -117,6 +126,7 @@ in
avizo
playerctl
wl-clipboard
fuzzel
;
};
};