aboutsummaryrefslogtreecommitdiff
path: root/share/system/common.nix
diff options
context:
space:
mode:
authorMiran Bastaja <miran.bastaja04@gmail.com>2024-07-06 07:54:51 +0200
committerMiran Bastaja <miran.bastaja04@gmail.com>2024-07-06 07:54:51 +0200
commitab2d5d4c3db490f58869d28d2edbbfd3480e0645 (patch)
tree3cf014150a697d0c86aa1ba00a88419d29ad0cf8 /share/system/common.nix
parent646c68e88e7daf7d33ebec6af4c17674b5d99238 (diff)
Add my own templates to a local registry
Diffstat (limited to 'share/system/common.nix')
-rw-r--r--share/system/common.nix26
1 files changed, 20 insertions, 6 deletions
diff --git a/share/system/common.nix b/share/system/common.nix
index a785573..ab2b6b4 100644
--- a/share/system/common.nix
+++ b/share/system/common.nix
@@ -2,11 +2,25 @@
# Used mostly for adding substituters and such
{ ... }:
{
- nix.settings = {
- experimental-features = [
- "nix-command"
- "flakes"
- ];
- auto-optimise-store = true;
+ nix = {
+ settings = {
+ experimental-features = [
+ "nix-command"
+ "flakes"
+ ];
+ auto-optimise-store = true;
+ };
+ registry = {
+ "templates" = {
+ from = {
+ type = "indirect";
+ id = "templates";
+ };
+ to = {
+ type = "git";
+ url = "https://codeberg.org/miranb/nix-templates";
+ };
+ };
+ };
};
}