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" ];
}))
];
}

File diff suppressed because it is too large Load diff

View file

@ -22,10 +22,11 @@ rustPlatform.buildRustPackage {
hash = "sha256-mDeJh3N6Zt3FNpyFmRkY8zOLIBad3CoV45WjB+RUkhA=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"smithay-0.3.0" = "sha256-cRBJ8r2fQ8d97DADOxfmUF5JYcOHQ05u8tMhVXmbrbE=";
"smithay-0.3.0" = "sha256-1BEJEdmGCt6jtPEcBt4R1d/LdKWLLJYJpcOn4SbvkRk=";
};
};