trying to get niri to show up in dm

This commit is contained in:
twoneis 2023-11-17 22:46:30 +01:00
parent fee9889d81
commit 243dbe3050
3 changed files with 505 additions and 167 deletions

View file

@ -1,5 +1,21 @@
{ pkgs, ... }: {
environment.systemPackages = [
(pkgs.callPackage ./niri {})
{ pkgs, ... }:
{
services.xserver.displayManager.sessionPackages = [
((pkgs.callPackage ./niri {}).overrideAttrs (prevAttrs: rec {
postInstall =
let
niriSession = ''
[Desktop Entry]
Name=niri
Comment=Scrolling wayland compositor
Exec=niri
Type=Application
'';
in ''
mkdir -p $out/share/wayland-sessions
echo "${niriSession}" > $out/share/wayland-sessions/niri.desktop
'';
passthru.providedSessions = [ "niri" ];
}))
];
}