Commit bbed64b
Changed files (5)
home
base
core
accounts
linux
home/base/core/accounts/default.nix
@@ -0,0 +1,3 @@
+{mylib, ...}: {
+ imports = mylib.scanModules ./.;
+}
home/base/core/accounts/email.nix
@@ -0,0 +1,40 @@
+{
+ pkgs,
+ myvars,
+ ...
+}: let
+ getPasswd = id: "${pkgs.rbw}/bin/rbw get ${id}";
+
+ forwardEmailSettings = {
+ imap = {
+ host = "imap.forwardemail.net";
+ port = 993;
+ tls.enable = true;
+ };
+ smtp = {
+ host = "smtp.forwardemail.net";
+ port = 465;
+ };
+ };
+
+ outlookSettings = {flavor = "outlook.office365.com";};
+in {
+ accounts.email.accounts = {
+ "${myvars.useremail}" =
+ forwardEmailSettings
+ // {
+ realName = myvars.userfullname;
+ userName = myvars.useremail;
+ address = myvars.useremail;
+ primary = true;
+ passwordCommand = getPasswd "6e58fb5d-1a74-4fd8-8b88-d793a43ea218";
+ };
+ "hpcesia@outlook.com" =
+ outlookSettings
+ // {
+ realName = myvars.userfullname;
+ userName = "hpcesia@outlook.com";
+ address = "hpcesia@outlook.com";
+ };
+ };
+}
home/base/core/git.nix
@@ -13,9 +13,6 @@
rm -f ${config.home.homeDirectory}/.gitconfig
'';
- home.packages = with pkgs; [
- ];
-
programs.git = {
enable = true;
lfs.enable = true;
home/linux/gui/misc.nix
@@ -21,8 +21,6 @@ in {
home.packages = with pkgs; [
chromium
- thunderbird
-
# Message
telegram-desktop
qq
home/linux/gui/thunderbird.nix
@@ -0,0 +1,13 @@
+{myvars, ...}: {
+ programs.thunderbird = {
+ enable = true;
+ profiles.Default = {
+ isDefault = true;
+ };
+ };
+
+ accounts.email.accounts = {
+ "${myvars.useremail}".thunderbird.enable = true;
+ "hpcesia@outlook.com".thunderbird.enable = true;
+ };
+}