diff --git a/DELL/nixpkgs/configs/msmtp_config b/DELL/nixpkgs/configs/msmtp_config new file mode 100644 index 0000000..7cbdb4b --- /dev/null +++ b/DELL/nixpkgs/configs/msmtp_config @@ -0,0 +1,18 @@ +defaults +protocol smtp +auth on +tls off +tls_trust_file /etc/ssl/certs/ca-bundle.crt +syslog LOG_USER +logfile ~/.msmtp.log +timeout 60 + + +account alexandre +host smtp.dri.fr +port 587 +domain dri.fr +from alexandre@dri.fr +user 1847_alexandre +passwordeval "pass email/alexandre" +auth plain diff --git a/DELL/nixpkgs/home.nix b/DELL/nixpkgs/home.nix index 708b877..89b6748 100644 --- a/DELL/nixpkgs/home.nix +++ b/DELL/nixpkgs/home.nix @@ -7,7 +7,7 @@ ./starship.nix ./i3status.nix ./emacs.nix - #./mails.nix + ./mails.nix ]; home.keyboard = { layout = "fr"; diff --git a/DELL/nixpkgs/i3status.nix b/DELL/nixpkgs/i3status.nix index 5abb845..8d46e4c 100644 --- a/DELL/nixpkgs/i3status.nix +++ b/DELL/nixpkgs/i3status.nix @@ -30,7 +30,30 @@ interval = 1; format = "{1m}"; } - { block = "sound"; } + { + block = "sound"; + headphones_indicator = true; + on_click = "pavucontrol"; + } + { + block = "net"; + device = "enp0s20f0u6u1i5"; + interval = 5; + format = "{graph_up}{graph_down}"; + } + { + block = "net"; + interval = 5; + device = "tun0"; + hide_missing = true; + } + { + block = "net"; + interval = 5; + device = "wlp2s0"; + format = "{ssid} {signal_strength} {ip} {speed_down;K*b}"; + hide_missing = true; + } { block = "backlight"; } diff --git a/DELL/nixpkgs/mails.nix b/DELL/nixpkgs/mails.nix index b189148..3713360 100644 --- a/DELL/nixpkgs/mails.nix +++ b/DELL/nixpkgs/mails.nix @@ -1,50 +1,35 @@ -{ pkgs, ... }: -{ - programs.mbsync.enable = true; +{ pkgs, config, lib, ... }:{ + # accounts.email.maildirBasePath = "Mailsdir"; + # accounts.email.accounts = { + # "alexandre" = rec { + # primary = true; + # address = "alexandre@dri.fr"; + # userName = "1847_alexandre"; + # flavor = "plain"; + # folders = { + # inbox = "INBOX"; + # trash = "Junk"; + # }; + # imap = { + # host = "imap.dri.fr"; + # tls.enable = false; + # }; + # smtp = { + # host = "smtp.dri.fr"; + # port = 587; + # tls.enable = false; + # }; + # passwordCommand = "pass email/alexandre"; + # mbsync.enable = true; + # mbsync.create = true; + # msmtp.enable = true; + # msmtp.extraConfig = '' + # auth plain + # ''; + # }; + # }; programs.msmtp.enable = true; - programs.notmuch = { - enable = true; - hooks = { - preNew = "mbsync --all"; - }; - }; - accounts.email = { - accounts.dri = { - address = "alexandre@dri.fr"; - gpg = { - key = "464CAA7A718D4CE84F03DFFE8B2EB421411BF613"; - signByDefault = true ; - }; - imap = { - host = "imap.dri.fr"; - tls = { - enable = false; - }; - }; - folders = { - inbox = "INBOX"; - }; - mbsync = { - enable = true; - create = "maildir"; - - }; - msmtp.enable = true; - notmuch.enable = true; - primary = true; - realName = "LUCAZEAU Alexandre"; - userName = "1847_alexandre"; - signature = { - text = '' - Avant Vente - ''; - showsignature = "append"; - }; - passwordCommand = "gpg --quiet --for-your-eyes-only --no-tty --decrypt ~/.password-store/mails.gpg"; - smtp = { - host = "smtp.dri.fr"; - port = 587; - }; - }; + xdg.configFile = { + "msmtp/config".source= ./configs/msmtp_config; }; }