about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--flake.lock16
-rw-r--r--flake.nix3
-rw-r--r--system/services/nix/default.nix11
3 files changed, 28 insertions, 2 deletions
diff --git a/flake.lock b/flake.lock
index bdd55dbd..162a8888 100644
--- a/flake.lock
+++ b/flake.lock
@@ -519,6 +519,7 @@
         "shell-library": "shell-library",
         "snap-sync": "snap-sync",
         "strip_js_comments": "strip_js_comments",
+        "templates": "templates",
         "user_js": "user_js",
         "yambar_cpu": "yambar_cpu",
         "yambar_memory": "yambar_memory"
@@ -739,6 +740,21 @@
         "url": "https://codeberg.org/ene/strip_js_comments.git"
       }
     },
+    "templates": {
+      "locked": {
+        "lastModified": 1679727232,
+        "narHash": "sha256-dwxC5EhBS4kNRNgVO93Totv7m44LwtBOAX+DZ2eNBk8=",
+        "ref": "refs/heads/prime",
+        "rev": "fd0ca7125d3a63071c2122bf110f458ff75b0dd5",
+        "revCount": 1,
+        "type": "git",
+        "url": "https://codeberg.org/ene/nixos-templates.git"
+      },
+      "original": {
+        "type": "git",
+        "url": "https://codeberg.org/ene/nixos-templates.git"
+      }
+    },
     "tree_sitter_js": {
       "flake": false,
       "locked": {
diff --git a/flake.nix b/flake.nix
index 24ee000d..448a5724 100644
--- a/flake.nix
+++ b/flake.nix
@@ -21,6 +21,9 @@
       url = "git+https://codeberg.org/ene/neovim-config.git";
       flake = false;
     };
+    templates = {
+      url = "git+https://codeberg.org/ene/nixos-templates.git";
+    };
 
     grades = {
       url = "git+https://codeberg.org/ene/Grades.git";
diff --git a/system/services/nix/default.nix b/system/services/nix/default.nix
index 15c3a026..afd26fab 100644
--- a/system/services/nix/default.nix
+++ b/system/services/nix/default.nix
@@ -1,8 +1,9 @@
+# vim: ts=2
 {
   config,
   lib,
   pkgs,
-  nixpkgs,
+  inputs,
   ...
 }: {
   nix = {
@@ -10,7 +11,13 @@
     package = pkgs.nixVersions.stable;
     # this can't be in nix settings because of some "type error". See:
     # https://discourse.nixos.org/t/flakes-error-error-attribute-outpath-missing/18044
-    registry.nixpkgs.flake = nixpkgs;
+
+    registry = {
+      nixpkgs.flake = inputs.nixpkgs;
+      n.flake = inputs.nixpkgs;
+      t.flake = inputs.templates;
+    };
+
     gc = {
       automatic = true;
       dates = "weekly";