Add registry entries for all our inputs

I don't know most of what's in the nix registry (except nixpkgs and
pridefetch), but it would be nice to! This commit adds registry entries
for everything we care about and a lot besides.

Particularly of interest are nixpkgs, which is pinned now, and
templates, which points to our own /+/Templates repository where we
can fulfill our lifelong ambitions of having a standard gitignore for
every new repository!

Co-Authored-By: Skyler Grey <minion@clicks.codes>
But-I-Think: You could probably tell that
Change-Id: Ic70738906954638cf61bdb7c2766c214324738d9
Reviewed-on: https://git.clicks.codes/c/Chimera/NixFiles/+/417
Reviewed-by: Skyler Grey <minion@clicks.codes>
Tested-by: Samuel Shuert <coded@clicks.codes>
diff --git a/flake.lock b/flake.lock
index d58bd9d..8375b55 100644
--- a/flake.lock
+++ b/flake.lock
@@ -308,7 +308,8 @@
         "nixpkgs": "nixpkgs_2",
         "nur": "nur",
         "snowfall-lib": "snowfall-lib",
-        "sops-nix": "sops-nix"
+        "sops-nix": "sops-nix",
+        "templates": "templates"
       }
     },
     "snowfall-lib": {
@@ -382,6 +383,21 @@
         "type": "github"
       }
     },
+    "templates": {
+      "locked": {
+        "lastModified": 1708553502,
+        "narHash": "sha256-WHLCwZD/zwyCdAjAuyWDDnrGCvH07ZqaNYTjgj/yKBU=",
+        "ref": "refs/heads/main",
+        "rev": "449f54b5fedd6de28b3a9abfe82ba78d6efcd4b3",
+        "revCount": 2,
+        "type": "git",
+        "url": "https://git.clicks.codes/Templates"
+      },
+      "original": {
+        "type": "git",
+        "url": "https://git.clicks.codes/Templates"
+      }
+    },
     "wlroots": {
       "flake": false,
       "locked": {
diff --git a/flake.nix b/flake.nix
index 082873d..e93f5fd 100644
--- a/flake.nix
+++ b/flake.nix
@@ -34,6 +34,8 @@
     };
 
     sops-nix.url = "github:Mic92/sops-nix";
+
+    templates.url = "git+https://git.clicks.codes/Templates";
   };
 
   outputs =
diff --git a/modules/nixos/registry/default.nix b/modules/nixos/registry/default.nix
index cd6ef76..3b35051 100644
--- a/modules/nixos/registry/default.nix
+++ b/modules/nixos/registry/default.nix
@@ -1,5 +1,3 @@
 { inputs, ... }: {
-  nix.registry = inputs // {
-    templates = "https://git.clicks.codes"; # nix init -t templates#typescript
-  };
+  nix.registry = builtins.mapAttrs (_: flake: { inherit flake; }) inputs;
 }
\ No newline at end of file