commit | 45aebab12b788b4be8d9a5f941d11cf9a863fe39 | [log] [tgz] |
---|---|---|
author | Skyler Turner <skyler@clicksminuteper.net> | Tue Mar 29 18:57:05 2022 +0100 |
committer | Skyler Turner <skyler@clicksminuteper.net> | Tue Mar 29 18:57:05 2022 +0100 |
tree | 29ad79eaf3a717d01a1a92c49048b98dd930ab46 | |
parent | 812002f91f43e2a2e72345dad413c451a71030e0 [diff] |
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 )))