fix: fixed generation when we manually set the package
This commit is contained in:
parent
b75aaca605
commit
cb19c771f5
3 changed files with 37 additions and 28 deletions
|
|
@ -26,19 +26,22 @@ in {
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable (lib.mkMerge [
|
config = lib.mkIf cfg.enable (lib.mkMerge [
|
||||||
{
|
{
|
||||||
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"];
|
|
||||||
};
|
|
||||||
|
|
||||||
warnings =
|
warnings =
|
||||||
lib.optional (config.impermanence.enable && !isBrowserImpermanenceSupported)
|
lib.optional (config.impermanence.enable && !isBrowserImpermanenceSupported)
|
||||||
"matrix-cyberia-pwa: Using unsupported package with impermanence enabled. You will need to manually configure impermanence for ${cfg.package.pname}. Supported package(s) ${pkgs.chromium.pname}";
|
"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) {
|
lib.mkIf (config.impermanence.enable && cfg.impermanence.enable && isChromium) {
|
||||||
home.persistence."/persist${config.home.homeDirectory}" = {
|
home.persistence."/persist${config.home.homeDirectory}" = {
|
||||||
|
|
|
||||||
|
|
@ -26,18 +26,21 @@ in {
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable (lib.mkMerge [
|
config = lib.mkIf cfg.enable (lib.mkMerge [
|
||||||
{
|
{
|
||||||
xdg.desktopEntries.proton-calendar-pwa = {
|
|
||||||
name = "Proton Calendar";
|
|
||||||
type = "Application";
|
|
||||||
exec = "${cfg.package}/bin/${cfg.package.pname} --app=https://calendar.proton.me";
|
|
||||||
icon = "chrome-ojibjkjikcpjonjjngfkegflhmffeemk-Default";
|
|
||||||
terminal = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
warnings =
|
warnings =
|
||||||
lib.optional (config.impermanence.enable && !isBrowserImpermanenceSupported)
|
lib.optional (config.impermanence.enable && !isBrowserImpermanenceSupported)
|
||||||
"proton-calendar-pwa: Using unsupported package with impermanence enabled. You will need to manually configure impermanence for ${cfg.package.pname}. Supported package(s) ${pkgs.chromium.pname}";
|
"proton-calendar-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.proton-calendar-pwa = {
|
||||||
|
name = "Proton Calendar";
|
||||||
|
type = "Application";
|
||||||
|
exec = "${cfg.package}/bin/${cfg.package.pname} --app=https://calendar.proton.me";
|
||||||
|
icon = "chrome-ojibjkjikcpjonjjngfkegflhmffeemk-Default";
|
||||||
|
terminal = false;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
)
|
||||||
(
|
(
|
||||||
lib.mkIf (config.impermanence.enable && cfg.impermanence.enable && isChromium) {
|
lib.mkIf (config.impermanence.enable && cfg.impermanence.enable && isChromium) {
|
||||||
home.persistence."/persist${config.home.homeDirectory}" = {
|
home.persistence."/persist${config.home.homeDirectory}" = {
|
||||||
|
|
|
||||||
|
|
@ -26,18 +26,21 @@ in {
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable (lib.mkMerge [
|
config = lib.mkIf cfg.enable (lib.mkMerge [
|
||||||
{
|
{
|
||||||
xdg.desktopEntries.proton-mail-pwa = {
|
|
||||||
name = "Proton Mail";
|
|
||||||
type = "Application";
|
|
||||||
exec = "${cfg.package}/bin/${cfg.package.pname} --app=https://mail.proton.me";
|
|
||||||
icon = "chrome-jnpecgipniidlgicjocehkhajgdnjekh-Default";
|
|
||||||
terminal = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
warnings =
|
warnings =
|
||||||
lib.optional (config.impermanence.enable && !isBrowserImpermanenceSupported)
|
lib.optional (config.impermanence.enable && !isBrowserImpermanenceSupported)
|
||||||
"proton-mail-pwa: Using unsupported package with impermanence enabled. You will need to manually configure impermanence for ${cfg.package.pname}. Supported package(s) ${pkgs.chromium.pname}";
|
"proton-mail-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.proton-mail-pwa = {
|
||||||
|
name = "Proton Mail";
|
||||||
|
type = "Application";
|
||||||
|
exec = "${cfg.package}/bin/${cfg.package.pname} --app=https://mail.proton.me";
|
||||||
|
icon = "chrome-jnpecgipniidlgicjocehkhajgdnjekh-Default";
|
||||||
|
terminal = false;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
)
|
||||||
(
|
(
|
||||||
lib.mkIf (config.impermanence.enable && cfg.impermanence.enable && isChromium) {
|
lib.mkIf (config.impermanence.enable && cfg.impermanence.enable && isChromium) {
|
||||||
home.persistence."/persist${config.home.homeDirectory}" = {
|
home.persistence."/persist${config.home.homeDirectory}" = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue