nix-config/modules/home-manager/webapps.nix
smayzy 092579af98
All checks were successful
nix flake show / show-flake (push) Successful in 27s
format with nixfmt to nixpkgs standarts
2025-07-24 19:19:46 +02:00

25 lines
473 B
Nix

{
lib,
pkgs,
config,
...
}:
let
browser = lib.getExe pkgs.firefox;
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.webapps.enable = mkOption {
type = types.bool;
default = false;
description = "jellyfin webapp";
};
config = mkIf config.smayzy.webapps.enable {
xdg.desktopEntries.jellyfin = {
name = "Jellyfin";
exec = "${browser} --no-remote -P jellyfin --new-window --kiosk https://jellyfin.smayzy.ovh";
};
};
}