webapps toogle
This commit is contained in:
parent
35444b6532
commit
725b077441
@ -7,6 +7,8 @@
|
|||||||
../../modules/home-manager/lf/lf.nix
|
../../modules/home-manager/lf/lf.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
smayzy.webapps.enable = true;
|
||||||
|
|
||||||
home.username = "smayzy";
|
home.username = "smayzy";
|
||||||
home.homeDirectory = "/home/smayzy";
|
home.homeDirectory = "/home/smayzy";
|
||||||
home.stateVersion = "25.05";
|
home.stateVersion = "25.05";
|
||||||
|
|||||||
@ -1,10 +1,19 @@
|
|||||||
{ lib, pkgs, inputs, ... }:
|
{ lib, pkgs, config, ... }:
|
||||||
let
|
let
|
||||||
browser = lib.getExe pkgs.firefox;
|
browser = lib.getExe pkgs.firefox;
|
||||||
|
inherit (lib) mkIf mkOption types;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
options.smayzy.webapps.enable = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "jellyfin webapp";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf config.smayzy.webapps.enable {
|
||||||
xdg.desktopEntries.jellyfin = {
|
xdg.desktopEntries.jellyfin = {
|
||||||
name = "Jellyfin";
|
name = "Jellyfin";
|
||||||
exec = "${browser} --no-remote -P jellyfin --new-window --kiosk https://jellyfin.smayzy.ovh";
|
exec = "${browser} --no-remote -P jellyfin --new-window --kiosk https://jellyfin.smayzy.ovh";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user