update vit a ssl script

feature/hass
Ingolf Wagner 2020-03-10 11:27:20 +08:00
parent ded316768d
commit 0af1187e62
Signed by: palo
GPG Key ID: 76BF5F1928B9618B
2 changed files with 18 additions and 1 deletions

View File

@ -35,7 +35,15 @@ in {
taskNextWeek
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

View File

@ -41,6 +41,7 @@ let
EOF
'';
in {
programs.tmux = {
@ -91,6 +92,14 @@ in {
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
'')
];
}