niri: formatting
This commit is contained in:
parent
c4c770e703
commit
000f4aa56b
1 changed files with 81 additions and 71 deletions
|
@ -11,10 +11,11 @@ let
|
||||||
inherit (config.modules.system) isGraphical;
|
inherit (config.modules.system) isGraphical;
|
||||||
inherit (config.meta.mainUser) username;
|
inherit (config.meta.mainUser) username;
|
||||||
|
|
||||||
|
|
||||||
cfg = config.modules.desktops.niri;
|
cfg = config.modules.desktops.niri;
|
||||||
|
|
||||||
niri = pkgs.callPackage (_: pkgs.rustPlatform.buildRustPackage {
|
niri = pkgs.callPackage (
|
||||||
|
_:
|
||||||
|
pkgs.rustPlatform.buildRustPackage {
|
||||||
pname = "niri";
|
pname = "niri";
|
||||||
version = "unstable";
|
version = "unstable";
|
||||||
|
|
||||||
|
@ -32,6 +33,7 @@ let
|
||||||
|
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
doInstallCheck = false;
|
doInstallCheck = false;
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
rustPlatform.bindgenHook
|
rustPlatform.bindgenHook
|
||||||
|
@ -86,6 +88,12 @@ let
|
||||||
"-lwayland-client"
|
"-lwayland-client"
|
||||||
"-Wl,--pop-state"
|
"-Wl,--pop-state"
|
||||||
]
|
]
|
||||||
|
++ [
|
||||||
|
"-Ctarget-cpu=native"
|
||||||
|
"-Cpanic=abort"
|
||||||
|
"-Clto=thin"
|
||||||
|
"-Cembed-bitcode=yes"
|
||||||
|
]
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -95,7 +103,8 @@ let
|
||||||
|
|
||||||
meta.mainProgram = "niri";
|
meta.mainProgram = "niri";
|
||||||
|
|
||||||
}) { };
|
}
|
||||||
|
) { };
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.modules.desktops.niri.enable = mkEnableOption "Niri, a scolling tiling wayland compositor";
|
options.modules.desktops.niri.enable = mkEnableOption "Niri, a scolling tiling wayland compositor";
|
||||||
|
@ -117,6 +126,7 @@ in
|
||||||
avizo
|
avizo
|
||||||
playerctl
|
playerctl
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
|
fuzzel
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue