From c8d2bdc80102752085592e97b5faf4d34b98ccb0 Mon Sep 17 00:00:00 2001 From: MoritzBoehme Date: Sun, 10 Oct 2021 11:58:25 +0200 Subject: [PATCH] added protonmail and thunderbird --- modules/apps/default.nix | 2 +- modules/apps/email.nix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 modules/apps/email.nix diff --git a/modules/apps/default.nix b/modules/apps/default.nix index 0cca57b..d04bb0d 100644 --- a/modules/apps/default.nix +++ b/modules/apps/default.nix @@ -1,7 +1,7 @@ { config, lib, pkgs, ... }: { - imports = [ ./rofi ./kitty.nix ./zathura.nix ]; + imports = [ ./rofi ./kitty.nix ./zathura.nix ./email.nix ]; home-manager.users.moritz.home.packages = with pkgs; [ neofetch unstable.keepassxc diff --git a/modules/apps/email.nix b/modules/apps/email.nix new file mode 100644 index 0000000..ff246dc --- /dev/null +++ b/modules/apps/email.nix @@ -0,0 +1,19 @@ +{ config, lib, pkgs, ... }: + +{ + home-manager.users.moritz = { home.packages = with pkgs; [ thunderbird ]; }; + services.gnome.gnome-keyring.enable = true; + environment.systemPackages = with pkgs; [ protonmail-bridge ]; + systemd.user.services.protonmail-bridge = { + description = "Protonmail Bridge"; + enable = true; + script = + "${pkgs.protonmail-bridge}/bin/protonmail-bridge --log-level debug"; + path = [ + pkgs.gnome3.gnome-keyring + ]; # HACK: https://github.com/ProtonMail/proton-bridge/issues/176 + wantedBy = [ "graphical-session.target" ]; + partOf = [ "graphical-session.target" ]; + }; + networking.firewall.allowedTCPPorts = [ 33728 1025 1143 ]; +}