webapps toogle

This commit is contained in:
smayzy 2025-07-06 15:12:59 +02:00
parent 35444b6532
commit 725b077441
2 changed files with 16 additions and 5 deletions

View File

@ -7,6 +7,8 @@
../../modules/home-manager/lf/lf.nix
];
smayzy.webapps.enable = true;
home.username = "smayzy";
home.homeDirectory = "/home/smayzy";
home.stateVersion = "25.05";

View File

@ -1,10 +1,19 @@
{ lib, pkgs, inputs, ... }:
{ 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";
};
};
}