Move protonmail-bridge and davmail to systemd services
This commit is contained in:
parent
958d283336
commit
8784149bd8
|
@ -1,7 +1,41 @@
|
|||
{ pkgs, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ ./email.nix ./calendar.nix ./contact.nix ];
|
||||
systemd.user.services = {
|
||||
protonmail-bridge = {
|
||||
Unit = {
|
||||
Description = "Protonmail Bridge";
|
||||
After = [ "network.target" ];
|
||||
};
|
||||
Service = {
|
||||
Restart = "always";
|
||||
Environment = "PATH=${pkgs.gnome3.gnome-keyring}/bin";
|
||||
ExecStart =
|
||||
"${pkgs.protonmail-bridge}/bin/protonmail-bridge --noninteractive --log-level info";
|
||||
};
|
||||
Install.WantedBy = [
|
||||
"graphical-session.target"
|
||||
"mbsync.service"
|
||||
"imapnotify-proton.service"
|
||||
];
|
||||
};
|
||||
davmail = {
|
||||
Unit = {
|
||||
Description = "DavMail";
|
||||
After = [ "network.target" ];
|
||||
};
|
||||
Service = {
|
||||
Restart = "always";
|
||||
ExecStart = "${pkgs.davmail}/bin/davmail -notray";
|
||||
};
|
||||
Install.WantedBy = [
|
||||
"graphical-session.target"
|
||||
"mbsync.service"
|
||||
"imapnotify-ukaea.service"
|
||||
];
|
||||
};
|
||||
};
|
||||
services = {
|
||||
mbsync = {
|
||||
enable = true;
|
||||
|
|
|
@ -257,7 +257,6 @@ in ''
|
|||
exec-once = ${pkgs.waybar}/bin/waybar
|
||||
exec-once = ${pkgs.swaynotificationcenter}/bin/swaync
|
||||
exec-once = ${pkgs.hyprpaper}/bin/hyprpaper
|
||||
exec-once = ${pkgs.protonmail-bridge}/bin/protonmail-bridge -n
|
||||
exec-once = ${pkgs.dex}/bin/dex --autostart
|
||||
exec-once = kidex
|
||||
exec = pkill -HUP kanshi
|
||||
|
|
|
@ -98,7 +98,5 @@
|
|||
monitor=desc:Iiyama North America PLB2403WS 0574281251316,preferred,0x185,1
|
||||
monitor=desc:Dell Inc. DELL U2417H 5K9YD872FY1L,preferred,1920x0,1,transform,1
|
||||
monitor=desc:Acer Technologies ED270R TJMEE0043W01,highrr,0x0,1
|
||||
|
||||
exec-once = ${pkgs.davmail}/bin/davmail -notray
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue