]> git.immae.eu Git - perso/Immae/Config/Nix/NUR.git/commitdiff
Hide exceptions from nixops python
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 19 Oct 2019 22:05:29 +0000 (00:05 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 24 Apr 2020 22:04:30 +0000 (00:04 +0200)
overlays/nixops/default.nix

index 5b4bc8692066e31020f44b8d51363a15213dcf6f..781fc11a2d644eeb4eb68a21c5f7b06018f88ef7 100644 (file)
@@ -8,6 +8,7 @@ self: super: {
         })
        ];
     preConfigure = (old.preConfigure or "") + ''
+      sed -i -e '/^import sys$/s/$/; sys.tracebacklimit = 0/' scripts/nixops
       sed -i -e "/'keyFile'/s/'path'/'string'/" nixops/backends/__init__.py
       '';
   });