abstract prusa wrapper

This commit is contained in:
twoneis 2024-09-18 07:47:54 +02:00
parent cf8067bbe7
commit 25b93c8e61
2 changed files with 15 additions and 14 deletions

View file

@ -0,0 +1,13 @@
{ lib, pkgs, app, name, ... }: let
inherit (lib) concatStrings;
config = pkgs.writeTextFile {
name = concatStrings [ "i3-config" name ];
text = ''
exec ${app}
'';
};
in pkgs.makeDesktopItem {
name = name;
desktopName = name;
exec = "${pkgs.xwayland-run}/bin/xwayland-run -- ${pkgs.i3}/bin/i3 -c ${config}";
}