Move service setup out of default.nix
This commit is contained in:
parent
0b8d230151
commit
069bf62ca4
|
@ -5,6 +5,7 @@
|
|||
vdirsyncer.enable = true;
|
||||
khal.enable = true;
|
||||
};
|
||||
services.vdirsyncer.enable = true;
|
||||
accounts.calendar = {
|
||||
basePath = ".calendar";
|
||||
accounts = {
|
||||
|
|
|
@ -2,46 +2,4 @@
|
|||
|
||||
{
|
||||
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;
|
||||
frequency = "*:0/15";
|
||||
};
|
||||
imapnotify.enable = true;
|
||||
vdirsyncer.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{ config, lib, pkgs, hostName, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [ protonmail-bridge davmail ];
|
||||
programs = {
|
||||
mbsync = {
|
||||
enable = true;
|
||||
|
@ -13,6 +12,13 @@
|
|||
msmtp.enable = true;
|
||||
mu.enable = true;
|
||||
};
|
||||
services = {
|
||||
mbsync = {
|
||||
enable = true;
|
||||
frequency = "*:0/15";
|
||||
};
|
||||
imapnotify.enable = true;
|
||||
};
|
||||
accounts.email = {
|
||||
maildirBasePath = ".mail";
|
||||
accounts = let realName = "Evie Litherland-Smith";
|
||||
|
@ -143,4 +149,38 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
systemd.user.services = {
|
||||
protonmail-bridge = {
|
||||
Unit = {
|
||||
Description = "Protonmail Bridge";
|
||||
After = [ "network.target" ];
|
||||
};
|
||||
Service = {
|
||||
Restart = "always";
|
||||
# Environment = "PATH=${pkgs.libsecret}/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"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue