feat(ops/nixos/nugget): Install msmtp & lieer timers

This commit is contained in:
Vincent Ambo 2020-01-05 16:40:24 +00:00
parent e5608cf079
commit d66c7a8942

View file

@ -8,6 +8,8 @@ config: let
nixpkgs = import pkgs.third_party.nixpkgsSrc { nixpkgs = import pkgs.third_party.nixpkgsSrc {
config.allowUnfree = true; config.allowUnfree = true;
}; };
lieer = (pkgs.third_party.lieer {});
in pkgs.lib.fix(self: { in pkgs.lib.fix(self: {
hardware = { hardware = {
pulseaudio.enable = true; pulseaudio.enable = true;
@ -70,7 +72,7 @@ in pkgs.lib.fix(self: {
environment.systemPackages = environment.systemPackages =
# programs from the depot # programs from the depot
(with pkgs; [ (with pkgs; [
(third_party.lieer {}) lieer
ops.kontemplate ops.kontemplate
third_party.git third_party.git
tools.emacs tools.emacs
@ -93,6 +95,7 @@ in pkgs.lib.fix(self: {
imagemagick imagemagick
jq jq
kubectl kubectl
msmtp
notmuch notmuch
openssh openssh
openssl openssl
@ -174,6 +177,26 @@ in pkgs.lib.fix(self: {
# Do not restart the display manager automatically # Do not restart the display manager automatically
systemd.services.display-manager.restartIfChanged = lib.mkForce false; systemd.services.display-manager.restartIfChanged = lib.mkForce false;
# Configure email setup
systemd.user.services.lieer-tazjin = {
description = "Synchronise mail@tazj.in via lieer";
script = "${lieer}/bin/gmi sync";
serviceConfig = {
WorkingDirectory = "%h/mail/account.tazjin";
Type = "oneshot";
};
};
systemd.user.timers.lieer-tazjin = {
wantedBy = [ "timers.target" ];
timerConfig = {
OnActiveSec = "1";
OnUnitActiveSec = "180";
};
};
# ... and other nonsense. # ... and other nonsense.
system.stateVersion = "19.09"; system.stateVersion = "19.09";
}) })