feat: created entries to install PWA's

This commit is contained in:
Leyla Becker 2025-12-20 10:35:21 -06:00
parent fa0f7b0765
commit aab05a8135
5 changed files with 103 additions and 0 deletions

View file

@ -0,0 +1,32 @@
{
lib,
pkgs,
config,
...
}: {
options.programs.proton-calendar-pwa = {
enable = lib.mkEnableOption "enable Proton Calendar PWA";
};
config = lib.mkIf config.programs.proton-calendar-pwa.enable (lib.mkMerge [
{
xdg.desktopEntries.proton-calendar-pwa = {
name = "Proton Calendar";
type = "Application";
exec = "${pkgs.chromium}/bin/chromium --app=https://calendar.proton.me";
icon = "chrome-ojibjkjikcpjonjjngfkegflhmffeemk-Default";
terminal = false;
};
}
(
lib.mkIf config.impermanence.enable {
home.persistence."/persist${config.home.homeDirectory}" = {
directories = [
"${config.xdg.configHome}/chromium"
];
allowOther = true;
};
}
)
]);
}