update vit a ssl script

This commit is contained in:
Ingolf Wagner 2020-03-10 11:27:20 +08:00
parent ded316768d
commit 0af1187e62
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
2 changed files with 18 additions and 1 deletions

View file

@ -35,7 +35,15 @@ in {
taskNextWeek taskNextWeek
tsak tsak
unstable.vit (unstable.vit.overrideAttrs (old: rec {
name = "vit-${version}";
version = "master";
src = pkgs.fetchgit {
url = "https://github.com/scottkosty/vit.git";
rev = "41d046e86c1ff73a95d78b66149e3fb30a6aac85";
sha256 = "0xkh5hiryh7nwi17wrp1pxscbw0a2fdw349mhgvx59hafpkf13nv";
};
}))
python # needed for hooks python # needed for hooks

View file

@ -41,6 +41,7 @@ let
EOF EOF
''; '';
in { in {
programs.tmux = { programs.tmux = {
@ -91,6 +92,14 @@ in {
pciutils pciutils
(pkgs.writers.writeBashBin "ssl-check-cert-of-domain" ''
DOMAIN=$1
echo | \
${pkgs.openssl}/bin/openssl s_client -servername ''${DOMAIN} -connect ''${DOMAIN}:443 2>/dev/null | \
${pkgs.openssl}/bin/openssl x509 -text | \
${pkgs.less}/bin/less
'')
]; ];
} }