Skip to content

Instantly share code, notes, and snippets.

@grahamc

grahamc/a.nix Secret

Created April 20, 2019 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grahamc/196c7efd4f57e421251037f0d9c99e38 to your computer and use it in GitHub Desktop.
Save grahamc/196c7efd4f57e421251037f0d9c99e38 to your computer and use it in GitHub Desktop.
{
imports = [
./b.nix
];
example = "foobaz ${./bar}";
}
{
a = true;
}
{ pkgs }:
let
dotslashbar = pkgs.writeTextFile "bar" "hello";
in {
imports = [
{
a = true;
}
];
example = "foobaz ${dotslashbar}";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment