From 81fd413a21a3746680efd2260ca947a9bbfc0732 Mon Sep 17 00:00:00 2001 From: Alexandre LUCAZEAU Date: Wed, 11 Jan 2023 19:53:16 +0100 Subject: [PATCH] ADD : configuration ssmtp for alerting --- hosts/x201/nixos/configuration.nix | 2 +- hosts/x201/nixpkgs/home.nix | 1 + modules/smtp.nix | 13 +++++++++++++ modules/tmux.nix | 1 + 4 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 modules/smtp.nix diff --git a/hosts/x201/nixos/configuration.nix b/hosts/x201/nixos/configuration.nix index 3a445be..1d0fac8 100644 --- a/hosts/x201/nixos/configuration.nix +++ b/hosts/x201/nixos/configuration.nix @@ -12,6 +12,7 @@ ./services.nix ./scanner.nix ../modules/common.nix + ../modules/smtp.nix ./dev.nix ]; @@ -146,7 +147,6 @@ lp" ]; home-manager neovim git - tmux ncdu rclone borgbackup diff --git a/hosts/x201/nixpkgs/home.nix b/hosts/x201/nixpkgs/home.nix index ea8851f..d9f51c2 100644 --- a/hosts/x201/nixpkgs/home.nix +++ b/hosts/x201/nixpkgs/home.nix @@ -11,6 +11,7 @@ ./i3status.nix ./neovim.nix ./himalaya.nix + ../../../modules/tmux.nix ]; home.stateVersion = "21.11"; home.username = "alexandre"; diff --git a/modules/smtp.nix b/modules/smtp.nix new file mode 100644 index 0000000..bcf890b --- /dev/null +++ b/modules/smtp.nix @@ -0,0 +1,13 @@ +{ +programs.msmtp = { + enable = true; + accounts.default = { + auth = true; + tls = true; + host = "ssl0.ovh.net"; + from = "supervision@pizzajoff.re"; + user = "supervision@pizzajoff.re"; + passwordeval = "cat /tmp/fic"; + }; +}; +} diff --git a/modules/tmux.nix b/modules/tmux.nix index bd52fa0..0e4b17c 100644 --- a/modules/tmux.nix +++ b/modules/tmux.nix @@ -14,6 +14,7 @@ plugins = with pkgs; [ tmuxPlugins.better-mouse-mode tmuxPlugins.sidebar + tmuxPlugins.nord # tmuxPlugins.tmux-power ];