32 lines
801 B
Nix
32 lines
801 B
Nix
{
|
|
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;
|
|
};
|
|
}
|
|
)
|
|
]);
|
|
}
|