1
0
mirror of https://github.com/kmein/niveum synced 2026-03-22 12:51:08 +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 = { services.xserver = {
layout = commaSep [ "de" "gr" "ru" ]; layout = commaSep [ "de" "gr" "ru" ];
xkbVariant = commaSep [ "T3" "polytonic" "phonetic_winkeys" ]; 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 = [ environment.systemPackages = [
pkgs.notmuch pkgs.notmuch
pkgs.offlineimap pkgs.offlineimap
pkgs.msmtp pkgs.msmtp
pkgs.neomutt pkgs.alot
]; ];
home-manager.users.me = { home-manager.users.me = {
@@ -12,7 +14,7 @@
accounts.email.accounts.hu-berlin = { accounts.email.accounts.hu-berlin = {
address = "meinhark@hu-berlin.de"; address = "meinhark@hu-berlin.de";
userName = "meinhark"; userName = "meinhark";
realName = config.niveum.user.fullName; realName = config.niveum.user.name;
imap = { imap = {
host = "mailbox.cms.hu-berlin.de"; host = "mailbox.cms.hu-berlin.de";
port = 993; port = 993;
@@ -25,6 +27,7 @@
}; };
msmtp.enable = true; msmtp.enable = true;
notmuch.enable = true; notmuch.enable = true;
passwordCommand = "echo '${strip (builtins.readFile <shared-secrets/eduroam/password>)}'";
offlineimap = { offlineimap = {
enable = true; enable = true;
postSyncHookCommand = "notmuch new"; postSyncHookCommand = "notmuch new";
@@ -35,5 +38,7 @@
programs.offlineimap = { programs.offlineimap = {
enable = true; enable = true;
}; };
programs.alot.enable = true;
}; };
} }

View File

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