Add protonmail-bridge setup script to sway packages
Add davmail version as well
This commit is contained in:
parent
8b20a84f50
commit
32d9d21408
|
@ -8,6 +8,19 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [../desktop.nix];
|
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 = {
|
wayland.windowManager.sway = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = null;
|
package = null;
|
||||||
|
|
Loading…
Reference in a new issue