That's how you get an item from a list
diff --git a/src/home.nix b/src/home.nix
index c526d68..f1c19df 100644
--- a/src/home.nix
+++ b/src/home.nix
@@ -13,7 +13,7 @@
             let 
                 callPackage = pkgs.newScope self;
             in map (f: {
-                name = (builtins.match "^(.*/)*(.*)\\.nix$" (toString f))[1]; 
+                name = elemAt (builtins.match "^(.*/)*(.*)\\.nix$" (toString f)) 1; 
                 value = callPackage (import f) { };
             }) packages
         )))