mirror of
https://github.com/kmein/niveum
synced 2026-03-22 21:01: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 = {
|
services.xserver = {
|
||||||
layout = commaSep [ "de" "gr" "ru" ];
|
layout = commaSep [ "de" "gr" "ru" ];
|
||||||
xkbVariant = commaSep [ "T3" "polytonic" "phonetic_winkeys" ];
|
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 = [
|
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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
{ lib }:
|
||||||
{
|
{
|
||||||
commaSep = builtins.concatStringsSep ",";
|
commaSep = builtins.concatStringsSep ",";
|
||||||
|
strip = lib.strings.removeSuffix "\n";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user