Files
nix-flake/modules/window-managers/niri.nix
T

42 lines
961 B
Nix

{
config,
pkgs,
inputs,
lib,
...
}: {
environment.systemPackages = with pkgs; [
inputs.noctalia.packages.${system}.default
xdg-desktop-portal-gnome
wl-clipboard
libsecret
cage
wev
];
services.upower.enable = true;
services.udisks2.enable = true;
programs.niri = {
enable = true;
useNautilus = true;
# override niri source to use https://github.com/niri-wm/niri/pull/3642
package = (pkgs.niri.overrideAttrs (finalAttrs: prevAttrs:
{
cargoHash = "sha256-jGORNwJ/F9UrajObXdGLbOTGEpCv919puUuWojbuVwo=";
src = pkgs.fetchFromGitHub {
owner = "niri-wm";
repo = "niri";
rev = "pull/3642";
sha256 = "sha256-SiE5xZ0btBLDLAD4InmABPu/mHVE8yFexPHmx9FQ3FA=";
};
cargoDeps = pkgs.rustPlatform.fetchCargoVendor {
inherit (finalAttrs) pname src version;
hash = finalAttrs.cargoHash;
};
}
));
};
}