Skip to content

Commit

Permalink
Add example Nix file
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Gonzalez committed Sep 4, 2016
1 parent 72fd62c commit c9609a4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions example.nix
@@ -0,0 +1,15 @@
{pkgs}:
rec { a = [ 1 2 3 ]; b = { b1 = true; b2 = { b21 = 1; really-really-long-name = { b221 = "foo"; b22 = [ 1 2 3 4 5 6 7 8]; }; }; };
c = f {
inherit a; str = ''#! ${pkgs.stdenv.shell}\n echo "Hello!"\n'';
environment.systemPackages = with pkgs; [ tmux vim ];
};
d = let tool = "nixfmt"; in "${tool} is awesome";
e = let lots = "lots";
of = "of";
binds = "binds";
which = "which";
were = "were";
originally = "originally";
unaligned = "unaligned"; in "wow!";
}

0 comments on commit c9609a4

Please sign in to comment.