1773268847
This commit is contained in:
@@ -1,11 +1,18 @@
|
||||
{ pkgs, config, ... }:
|
||||
|
||||
let
|
||||
profileDir = "${config.home.homeDirectory}/.local/share/audiobookshelf";
|
||||
launchScript = pkgs.writeShellScript "launch-audiobookshelf" ''
|
||||
mkdir -p ${profileDir}
|
||||
exec ${pkgs.epiphany}/bin/epiphany --application-mode --profile=${profileDir} https://abs.atri.dad
|
||||
'';
|
||||
in
|
||||
{
|
||||
home.packages = [ pkgs.epiphany ];
|
||||
|
||||
xdg.desktopEntries.audiobookshelf = {
|
||||
name = "Audiobookshelf";
|
||||
exec = "${pkgs.epiphany}/bin/epiphany --application-mode --profile=${config.home.homeDirectory}/.local/share/audiobookshelf https://abs.atri.dad";
|
||||
exec = "${launchScript}";
|
||||
icon = "audiobook";
|
||||
terminal = false;
|
||||
type = "Application";
|
||||
|
||||
Reference in New Issue
Block a user