feat: removed matrix pwa
This commit is contained in:
parent
1bb5d3d181
commit
d661421821
3 changed files with 0 additions and 60 deletions
|
|
@ -26,7 +26,6 @@ in {
|
|||
mod.home-manager-libreoffice
|
||||
mod.home-manager-makemkv
|
||||
mod.home-manager-mapillary-uploader
|
||||
mod.home-manager-matrix-cyberia-pwa
|
||||
mod.home-manager-mfoc
|
||||
mod.home-manager-noisetorch
|
||||
mod.home-manager-noita-entangled-worlds
|
||||
|
|
|
|||
|
|
@ -1,58 +0,0 @@
|
|||
{...}: {
|
||||
flake.homeModules.home-manager-matrix-cyberia-pwa = {
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
cfg = config.programs.matrix-cyberia-pwa;
|
||||
isChromium = cfg.package == pkgs.chromium;
|
||||
isBrowserImpermanenceSupported = cfg.package == pkgs.chromium;
|
||||
in {
|
||||
options.programs.matrix-cyberia-pwa = {
|
||||
enable = lib.mkEnableOption "enable Matrix Cyberia PWA";
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = pkgs.chromium;
|
||||
description = "Browser package to use for the PWA";
|
||||
};
|
||||
impermanence = {
|
||||
enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = isBrowserImpermanenceSupported;
|
||||
description = "Enable impermanence configuration for the PWA. Only automatically enabled when using chromium.";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable (lib.mkMerge [
|
||||
{
|
||||
warnings =
|
||||
lib.optional (config.impermanence.enable && !isBrowserImpermanenceSupported)
|
||||
"matrix-cyberia-pwa: Using unsupported package. You will need to manually configure pwa for ${cfg.package.pname}. Supported package(s) ${pkgs.chromium.pname}";
|
||||
}
|
||||
(
|
||||
lib.mkIf isChromium {
|
||||
xdg.desktopEntries.matrix-cyberia-pwa = {
|
||||
name = "Matrix (Cyberia)";
|
||||
type = "Application";
|
||||
exec = "${cfg.package}/bin/${cfg.package.pname} --app=https://chat.cyberia.club/";
|
||||
icon = "matrix";
|
||||
terminal = false;
|
||||
categories = ["Network" "InstantMessaging"];
|
||||
};
|
||||
}
|
||||
)
|
||||
(
|
||||
lib.mkIf (config.impermanence.enable && cfg.impermanence.enable && isChromium) {
|
||||
home.persistence."/persist${config.home.homeDirectory}" = {
|
||||
directories = [
|
||||
"${config.xdg.configHome}/chromium"
|
||||
];
|
||||
allowOther = true;
|
||||
};
|
||||
}
|
||||
)
|
||||
]);
|
||||
};
|
||||
}
|
||||
|
|
@ -75,7 +75,6 @@
|
|||
gdx-liftoff.enable = true;
|
||||
proton-mail-pwa.enable = true;
|
||||
proton-calendar-pwa.enable = true;
|
||||
matrix-cyberia-pwa.enable = true;
|
||||
element-desktop.enable = true;
|
||||
kicad.enable = true;
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue