1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 18:21:07 +01:00

feat(mail): add password command (broken)

This commit is contained in:
Kierán Meinhardt
2019-08-27 17:24:33 +02:00
parent 04dbd783c2
commit cc02d5af08
3 changed files with 13 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
with import <lib>;
{
{ lib, ... }:
let inherit (import <lib> { inherit lib; }) commaSep;
in {
services.xserver = {
layout = commaSep [ "de" "gr" "ru" ];
xkbVariant = commaSep [ "T3" "polytonic" "phonetic_winkeys" ];

View File

@@ -1,10 +1,12 @@
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:
let inherit (import <lib> { inherit lib; }) strip;
in
{
environment.systemPackages = [
pkgs.notmuch
pkgs.offlineimap
pkgs.msmtp
pkgs.neomutt
pkgs.alot
];
home-manager.users.me = {
@@ -12,7 +14,7 @@
accounts.email.accounts.hu-berlin = {
address = "meinhark@hu-berlin.de";
userName = "meinhark";
realName = config.niveum.user.fullName;
realName = config.niveum.user.name;
imap = {
host = "mailbox.cms.hu-berlin.de";
port = 993;
@@ -25,6 +27,7 @@
};
msmtp.enable = true;
notmuch.enable = true;
passwordCommand = "echo '${strip (builtins.readFile <shared-secrets/eduroam/password>)}'";
offlineimap = {
enable = true;
postSyncHookCommand = "notmuch new";
@@ -35,5 +38,7 @@
programs.offlineimap = {
enable = true;
};
programs.alot.enable = true;
};
}

View File

@@ -1,3 +1,5 @@
{ lib }:
{
commaSep = builtins.concatStringsSep ",";
strip = lib.strings.removeSuffix "\n";
}