webapps toogle
This commit is contained in:
parent
35444b6532
commit
725b077441
@ -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";
|
||||
|
||||
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user