Many changes
This commit is contained in:
@@ -8,6 +8,5 @@
|
||||
./qutebrowser-config.nix
|
||||
./audio.nix
|
||||
./reaper.nix
|
||||
./steam.nix
|
||||
];
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ in {
|
||||
|
||||
config = lib.mkIf isEnabled {
|
||||
|
||||
home.packages = with pkgs; [ pass-git-helper ];
|
||||
home.packages = with pkgs; [ pass-git-helper unzip ];
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
|
||||
@@ -12,7 +12,7 @@ in {
|
||||
config = lib.mkIf isEnabled {
|
||||
home.packages = with pkgs; [
|
||||
kubectl
|
||||
# kubernetes-helm
|
||||
kubernetes-helm
|
||||
velero
|
||||
];
|
||||
};
|
||||
|
||||
@@ -3,6 +3,24 @@
|
||||
let
|
||||
isEnabled =
|
||||
config.azos.mail.enable;
|
||||
default_account_params = {
|
||||
realName = "Aner Zakobar";
|
||||
notmuch.enable = true;
|
||||
};
|
||||
default_lieer_params = default_account_params // {
|
||||
lieer.enable = true;
|
||||
lieer.sync.enable = true;
|
||||
flavor = "gmail.com";
|
||||
};
|
||||
default_smtp = {
|
||||
tls = {
|
||||
enable = true;
|
||||
certificatesFile = "/etc/ssl/certs/ca-certificates.crt";
|
||||
};
|
||||
};
|
||||
default_gmail_smtp = default_smtp // {
|
||||
host = "smtp.gmail.com";
|
||||
};
|
||||
in {
|
||||
options.azos.mail.enable = lib.mkOption {
|
||||
default = true;
|
||||
@@ -11,6 +29,57 @@ in {
|
||||
};
|
||||
|
||||
config = lib.mkIf isEnabled {
|
||||
home.file."mail.txt".text = ''Mail enabled'';
|
||||
programs= {
|
||||
notmuch = {
|
||||
enable = true;
|
||||
hooks = {
|
||||
preNew = "mbsync -a && gmi sync";
|
||||
};
|
||||
};
|
||||
mbsync = {
|
||||
enable = true;
|
||||
};
|
||||
msmtp = {
|
||||
enable = true;
|
||||
};
|
||||
lieer = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
accounts.email.accounts = {
|
||||
gmail = default_lieer_params // {
|
||||
address = "anerisgreat@gmail.com";
|
||||
userName = "anerisgreat";
|
||||
smtp = default_gmail_smtp;
|
||||
passwordCommand = "pass gmail.com/mbsync-anerz";
|
||||
};
|
||||
bgu = default_lieer_params // {
|
||||
address = "anerz@post.bgu.ac.il";
|
||||
userName = "anerz@post.bgu.ac.il";
|
||||
smtp = default_gmail_smtp;
|
||||
passwordCommand = "pass post.bgu.ac.il/mbsync-anerz";
|
||||
};
|
||||
zakobar = default_account_params // {
|
||||
address = "aner@zakobar.com";
|
||||
msmtp.enable = true;
|
||||
|
||||
primary = true;
|
||||
userName = "aner@zakobar.com";
|
||||
imap = {
|
||||
host = "mail.privateemail.com";
|
||||
};
|
||||
mbsync = {
|
||||
enable = true;
|
||||
create = "maildir";
|
||||
};
|
||||
|
||||
smtp = default_smtp // {
|
||||
port = 587;
|
||||
host = "mail.privateemail.com";
|
||||
};
|
||||
passwordCommand = "pass zakobar.com/mail/aner";
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
imports = [./audio.nix ./bluetooth.nix];
|
||||
imports = [./audio.nix ./bluetooth.nix ./steam.nix];
|
||||
}
|
||||
|
||||
|
||||
@@ -10,8 +10,6 @@ in {
|
||||
};
|
||||
|
||||
config = lib.mkIf isEnabled {
|
||||
home.packages = with pkgs; [
|
||||
steam
|
||||
];
|
||||
programs.steam.enable = true;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user