Skip to content

Instantly share code, notes, and snippets.

@lovesegfault
Created May 31, 2020 04:49
Show Gist options
  • Save lovesegfault/f6619668f8fe8a5264884b6b6982b90a to your computer and use it in GitHub Desktop.
Save lovesegfault/f6619668f8fe8a5264884b6b6982b90a to your computer and use it in GitHub Desktop.
self: super: {
mkSecret = path: let
name = builtins.trace self.lib.tail (self.lib.splitString "/" (builtins.toString path));
stub = builtins.toFile name "";
in if builtins.pathExists path then path else self.lib.warn "Using stub for secrets.${name}" stub;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment