1
0
mirror of https://github.com/kmein/niveum synced 2026-03-30 01:01:10 +02:00

6 Commits

9 changed files with 63 additions and 70 deletions

View File

@@ -87,14 +87,22 @@ in {
aliases = ["kmein@posteo.de"]; aliases = ["kmein@posteo.de"];
userName = address; userName = address;
imap.host = "posteo.de"; imap.host = "posteo.de";
imap.port = 993;
imap.tls.enable = true;
smtp.host = imap.host; smtp.host = imap.host;
smtp.port = 465;
smtp.tls.enable = true;
primary = true; primary = true;
passwordCommand = "${pkgs.coreutils}/bin/cat ${config.age.secrets.email-password-posteo.path}"; passwordCommand = "${pkgs.coreutils}/bin/cat ${config.age.secrets.email-password-posteo.path}";
# himalaya = { enable = true; backend = "imap"; sender = "smtp"; }; himalaya = {
enable = true;
backend = "imap";
sender = "smtp";
};
}; };
}; };
# programs.himalaya.enable = true; programs.himalaya.enable = true;
programs.thunderbird = { programs.thunderbird = {
enable = true; enable = true;

View File

@@ -8,7 +8,11 @@
inherit (import ../lib/email.nix) defaults pronouns; inherit (import ../lib/email.nix) defaults pronouns;
fu-defaults = rec { fu-defaults = rec {
imap.host = "mail.zedat.fu-berlin.de"; imap.host = "mail.zedat.fu-berlin.de";
imap.port = 993;
imap.tls.enable = true;
smtp.host = imap.host; smtp.host = imap.host;
smtp.port = 465;
smtp.tls.enable = true;
folders.drafts = "Entwürfe"; folders.drafts = "Entwürfe";
folders.sent = "Gesendet"; folders.sent = "Gesendet";
folders.trash = "Papierkorb"; folders.trash = "Papierkorb";
@@ -48,6 +52,11 @@ in {
Arnimallee 10, Raum 106, 14195 Berlin Arnimallee 10, Raum 106, 14195 Berlin
''; '';
}; };
himalaya = {
enable = true;
backend = "imap";
sender = "smtp";
};
}); });
}; };
}; };

View File

@@ -72,6 +72,11 @@ in {
aliases = ["${userName}@hu-berlin.de"]; aliases = ["${userName}@hu-berlin.de"];
passwordCommand = "${pkgs.coreutils}/bin/cat ${config.age.secrets.email-password-meinhaki.path}"; passwordCommand = "${pkgs.coreutils}/bin/cat ${config.age.secrets.email-password-meinhaki.path}";
aerc.extraAccounts.signature-file = toString (pkgs.writeText "signature" signature.text); aerc.extraAccounts.signature-file = toString (pkgs.writeText "signature" signature.text);
himalaya = {
enable = true;
backend = "imap";
sender = "smtp";
};
signature = { signature = {
showSignature = "append"; showSignature = "append";
text = '' text = ''
@@ -92,6 +97,11 @@ in {
rec { rec {
userName = "dslalewa"; userName = "dslalewa";
address = "admin.alew.vglsprwi@hu-berlin.de"; address = "admin.alew.vglsprwi@hu-berlin.de";
himalaya = {
enable = true;
backend = "imap";
sender = "smtp";
};
aliases = ["${userName}@hu-berlin.de"]; aliases = ["${userName}@hu-berlin.de"];
passwordCommand = "${pkgs.coreutils}/bin/cat ${config.age.secrets.email-password-dslalewa.path}"; passwordCommand = "${pkgs.coreutils}/bin/cat ${config.age.secrets.email-password-dslalewa.path}";
inherit (hu-employee) signature; inherit (hu-employee) signature;

View File

@@ -103,42 +103,9 @@ in {
"khal/config".text = '' "khal/config".text = ''
[calendars] [calendars]
[[alew]] [[kalender_local]]
path = ${davHome}/calendar/alew path = ${davHome}/calendar/*
color = "light gray" type = discover
[[personal]]
path = ${davHome}/calendar/personal
color = "light cyan"
[[krebs]]
path = ${davHome}/calendar/krebs
color = "light red"
[[uni]]
path = ${davHome}/calendar/uni-1
color = "yellow"
[[zodiac]]
path = ${davHome}/calendar/zodiac
color = "light green"
[[ddglc]]
path = ${davHome}/calendar/ddglc
color = "light blue"
[[fysi]]
path = ${davHome}/calendar/fysi-1
color = "light magenta"
[[fysi_team]]
path = ${davHome}/calendar/personal_shared_by_fdf
color = "light red"
[[birthdays]]
path = ${davHome}/contacts/contacts
type = birthdays
color = "light green"
[default] [default]
highlight_event_days = True highlight_event_days = True
@@ -170,19 +137,7 @@ in {
[pair kalender] [pair kalender]
a = "kalender_local" a = "kalender_local"
b = "kalender_cloud" b = "kalender_cloud"
collections = ["personal", "alew", "uni-1", "zodiac", "ddglc"] collections = ["from b"]
conflict_resolution = "b wins"
[pair krebs]
a = "kalender_local"
b = "krebs_cloud"
collections = ["3edef929-d509-7944-2440-000a54f2d054"]
conflict_resolution = "b wins"
[pair fysi]
a = "kalender_local"
b = "fysi_cloud"
collections = ["fysi-1", "personal_shared_by_fdf"]
conflict_resolution = "b wins" conflict_resolution = "b wins"
[storage kontakte_local] [storage kontakte_local]
@@ -206,18 +161,6 @@ in {
url = "${kmeinCloud.davEndpoint}/calendars/${kmeinCloud.username}/" url = "${kmeinCloud.davEndpoint}/calendars/${kmeinCloud.username}/"
username = "${kmeinCloud.username}" username = "${kmeinCloud.username}"
password.fetch = ["command", "cat", "${kmeinCloud.passwordFile}"] password.fetch = ["command", "cat", "${kmeinCloud.passwordFile}"]
[storage krebs_cloud]
type = "caldav"
url = "http://calendar.r/krebs/"
username = "krebs"
password = "krebs"
[storage fysi_cloud]
type = "caldav"
url = "${fysiCloud.davEndpoint}/calendars/${fysiCloud.username}/"
username = "${fysiCloud.username}"
password.fetch = ["command", "cat", "${fysiCloud.passwordFile}"]
''; '';
}; };
}; };

View File

@@ -250,7 +250,7 @@ in {
# gnumeric # gnumeric
dia dia
pandoc pandoc
niveumPackages.man-pandoc # niveumPackages.man-pandoc
typst typst
# proselint # proselint
asciidoctor asciidoctor

View File

@@ -21,13 +21,13 @@ in {
# stylix.polarity = "either"; # stylix.polarity = "either";
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/${ stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/${
"onedark" # "onedark"
# synth-midnight-dark # synth-midnight-dark
# apprentice # https://romainl.github.io/Apprentice/ # apprentice # https://romainl.github.io/Apprentice/
# one-light # one-light
# onedark # onedark
# material # https://github.com/ntpeters/base16-materialtheme-scheme # material # https://github.com/ntpeters/base16-materialtheme-scheme
# material-palenight # "material-palenight"
# material-lighter # material-lighter
# tomorrow # https://github.com/chriskempson/tomorrow-theme # tomorrow # https://github.com/chriskempson/tomorrow-theme
# tomorrow-night # tomorrow-night
@@ -37,7 +37,7 @@ in {
# selenized-dark # selenized-dark
# papercolor-light # papercolor-light
# papercolor-dark # papercolor-dark
# dracula # https://draculatheme.com/ "dracula" # https://draculatheme.com/
}.yaml"; }.yaml";
stylix.fonts = { stylix.fonts = {

View File

@@ -70,7 +70,7 @@
sshKeys = pkgs: sshKeys = pkgs:
pkgs.lib.strings.splitString "\n" (pkgs.lib.strings.fileContents (pkgs.fetchurl { pkgs.lib.strings.splitString "\n" (pkgs.lib.strings.fileContents (pkgs.fetchurl {
url = "https://github.com/kmein.keys"; url = "https://github.com/kmein.keys";
hash = "sha256-TvvPwplrH9cw7NE4GKqbE5ga+oBHM+TkjxYQ3b1fpLI="; hash = "sha256-TVv1UHfNs3zIW8vrnCG7PPeMtgr2SDjrb8yZBMvp9/A=";
})); }));
}; };

View File

@@ -2,6 +2,7 @@
writers, writers,
formats, formats,
wtf, wtf,
himalaya,
lib, lib,
jq, jq,
gh, gh,
@@ -31,7 +32,7 @@
mods.vdir_khal = command { mods.vdir_khal = command {
title = "Calendar"; title = "Calendar";
cmd = "${khal}/bin/khal"; cmd = "${khal}/bin/khal";
args = ["--color" "list"]; args = ["--color" "list" "--exclude-calendar" "calendarium-tridentinum"];
refreshInterval = "1m"; refreshInterval = "1m";
position = rec { position = rec {
top = 0; top = 0;
@@ -136,6 +137,28 @@
width = 2; width = 2;
}; };
}; };
mods.email = command {
title = "Email";
cmd = writers.writeDash "email" ''
${himalaya}/bin/himalaya accounts --output json \
| ${jq}/bin/jq -r 'map(.name) | join("\n")' \
| while read -r account
do
${himalaya}/bin/himalaya list --account "$account" -o json \
| ${jq}/bin/jq -r '
map(select(.flags == [])
| "\u001b[33m\(.from.addr)\u001b[0m \(.subject)") | join("\n")
'
done
'';
refreshInterval = "5m";
position = {
top = 2;
left = 0;
height = 4;
width = 3;
};
};
mods.gh-status = command { mods.gh-status = command {
enabled = true; enabled = true;
title = "GitHub"; title = "GitHub";

View File

@@ -16,7 +16,7 @@ in {
./mpd.nix ./mpd.nix
./grocy.nix ./grocy.nix
./spotifyd.nix ./spotifyd.nix
../../configs/keyboard.nix # ../../configs/keyboard.nix
../../configs/sound.nix ../../configs/sound.nix
../../configs/monitoring.nix ../../configs/monitoring.nix
../../configs/retiolum.nix ../../configs/retiolum.nix