home-manager/libs/default.nix

17 lines
303 B
Nix

{
mkAutostart = {
pkgs,
name,
command,
}: {
source = "${
pkgs.makeDesktopItem {
name = "${name}-autostart";
desktopName = "${name}-autostart";
exec = command;
noDisplay = true;
}
}/share/applications/${name}-autostart.desktop";
};
}