From 71226ec478b71daf6a0e7d151514083feb1ca18f Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sun, 26 Jan 2025 15:38:38 -0600 Subject: templates: add 'system-flake' template --- templates/system-flake/pkgs/lib/fibonacci.nix | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 templates/system-flake/pkgs/lib/fibonacci.nix (limited to 'templates/system-flake/pkgs/lib/fibonacci.nix') diff --git a/templates/system-flake/pkgs/lib/fibonacci.nix b/templates/system-flake/pkgs/lib/fibonacci.nix new file mode 100644 index 0000000..a12576b --- /dev/null +++ b/templates/system-flake/pkgs/lib/fibonacci.nix @@ -0,0 +1,7 @@ +let + fib = n: + if n > 1 + then fib (n - 1) + fib (n - 2) + else 1; +in + fib -- cgit v1.2.3