update vit a ssl script
This commit is contained in:
parent
ded316768d
commit
0af1187e62
2 changed files with 18 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
'')
|
||||
|
||||
];
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue