Compare commits

..

No commits in common. "5002c881f7bde33a235db62a5df30b89513f385d" and "e6dbed2e17182769249add38366b324655246193" have entirely different histories.

5 changed files with 11 additions and 23 deletions

View File

@ -111,8 +111,6 @@
gitName = fullName; gitName = fullName;
gitEmail = "7386960+nmasur@users.noreply.github.com"; gitEmail = "7386960+nmasur@users.noreply.github.com";
mail.server = "noahmasur.com"; mail.server = "noahmasur.com";
mail.imapHost = "imap.purelymail.com";
mail.smtpHost = "smtp.purelymail.com";
dotfilesRepo = "git@github.com:nmasur/dotfiles"; dotfilesRepo = "git@github.com:nmasur/dotfiles";
}; };

View File

@ -12,6 +12,7 @@ nixpkgs.lib.nixosSystem {
./hardware-configuration.nix ./hardware-configuration.nix
../../modules/common ../../modules/common
../../modules/nixos ../../modules/nixos
(removeAttrs globals [ "mail.server" ])
wsl.nixosModules.wsl wsl.nixosModules.wsl
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
disko.nixosModules.disko disko.nixosModules.disko

View File

@ -181,11 +181,6 @@
}; };
}; };
xdg.desktopEntries.aerc = lib.mkIf pkgs.stdenv.isLinux {
name = "aerc";
exec = "kitty aerc %u";
};
programs.fish.shellAbbrs = { ae = "aerc"; }; programs.fish.shellAbbrs = { ae = "aerc"; };
}; };

View File

@ -10,17 +10,9 @@
default = config.user; default = config.user;
}; };
mail.server = lib.mkOption { mail.server = lib.mkOption {
type = lib.types.nullOr lib.types.str; type = lib.types.str;
description = "Server name for the email address."; description = "Server name for the email address.";
}; };
mail.imapHost = lib.mkOption {
type = lib.types.nullOr lib.types.str;
description = "Server host for IMAP (reading mail).";
};
mail.smtpHost = lib.mkOption {
type = lib.types.nullOr lib.types.str;
description = "Server host for SMTP (sending mail).";
};
}; };
config = lib.mkIf config.mail.enable { config = lib.mkIf config.mail.enable {
@ -50,7 +42,7 @@
folders = { }; folders = { };
getmail = { }; getmail = { };
imap = { imap = {
host = config.mail.imapHost; host = "imap.purelymail.com";
port = 993; port = 993;
tls.enable = true; tls.enable = true;
}; };
@ -63,9 +55,9 @@
maildir = { path = "main"; }; maildir = { path = "main"; };
mbsync = { mbsync = {
enable = true; enable = true;
create = "both"; create = "maildir";
expunge = "both"; expunge = "none";
remove = "both"; remove = "none";
patterns = [ "*" ]; patterns = [ "*" ];
extraConfig.channel = { extraConfig.channel = {
CopyArrivalDate = "yes"; # Sync time of original message CopyArrivalDate = "yes"; # Sync time of original message
@ -78,7 +70,7 @@
builtins.toString ../../../private/mailpass.age builtins.toString ../../../private/mailpass.age
}"; }";
smtp = { smtp = {
host = config.mail.smtpHost; host = "smtp.purelymail.com";
port = 465; port = 465;
tls.enable = true; tls.enable = true;
}; };

View File

@ -1,8 +1,10 @@
{ config, lib, ... }: { { config, lib, ... }:
{
options = { options = {
arrServer = lib.mkOption { arrServer = lib.mkOption {
type = lib.types.nullOr lib.types.str; type = lib.types.str;
description = "Hostname for arr services"; description = "Hostname for arr services";
default = null; default = null;
}; };