Swap protonmail-bridge service for official GUI

This commit is contained in:
Evie Litherland-Smith 2024-06-18 15:13:17 +01:00
parent 8891570856
commit 44d3f0472a

View file

@ -3,14 +3,7 @@
hostname, hostname,
... ...
}: { }: {
home.packages = with pkgs; [ home.packages = with pkgs; [protonmail-bridge-gui];
protonmail-bridge
(writeShellScriptBin "protonmail-bridge-setup" ''
systemctl --user stop protonmail-bridge
${protonmail-bridge}/bin/protonmail-bridge -c
systemctl --user restart protonmail-bridge
'')
];
accounts.email = { accounts.email = {
maildirBasePath = "Mail"; maildirBasePath = "Mail";
accounts = let accounts = let
@ -86,17 +79,4 @@
}; };
}; };
}; };
systemd.user.services.protonmail-bridge = {
Unit = {
Description = "Proton Mail Bridge";
Wants = ["network-online.target"];
After = ["network-online.target"];
};
Service = {
Environment = ["PATH=/run/current-system/sw/bin/:$PATH"];
Restart = "always";
ExecStart = "${pkgs.protonmail-bridge}/bin/protonmail-bridge -n";
};
Install.WantedBy = ["default.target"];
};
} }