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:
@@ -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" ];
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
{ lib }:
|
||||
{
|
||||
commaSep = builtins.concatStringsSep ",";
|
||||
strip = lib.strings.removeSuffix "\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user