Add protonmail-bridge setup script to sway packages

Add davmail version as well
This commit is contained in:
Evie Litherland-Smith 2024-04-20 13:07:01 +01:00
parent 8b20a84f50
commit 32d9d21408

View file

@ -8,6 +8,19 @@
...
}: {
imports = [../desktop.nix];
home.packages = with pkgs; [
(writeShellScriptBin "protonmail-setup-bridge" ''
pkill -9 -f protonmail-bridge
${protonmail-bridge}/bin/protonmail-bridge -c
swaymsg exec "${protonmail-bridge}/bin/protonmail-bridge -n"
'')
(writeShellScriptBin "davmail-setup" ''
systemctl --user restart davmail # Ensure config file is present
systemctl --user stop davmail
${davmail}/bin/davmail -- -n ~/.davmail.properties
systemctl --user restart davmail
'')
];
wayland.windowManager.sway = {
enable = true;
package = null;