From bb1606ca760890f87e3fa325aa41c85baf4ce747 Mon Sep 17 00:00:00 2001 From: Nydragon Date: Tue, 21 May 2024 19:07:32 +0900 Subject: [PATCH] fix: replace argument with recursive set --- flake.nix | 2 +- templates/default.nix | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index daef06f..3fd7889 100644 --- a/flake.nix +++ b/flake.nix @@ -40,6 +40,6 @@ }; }; - templates = import ./templates { self = self.templates; }; + templates = import ./templates; }; } diff --git a/templates/default.nix b/templates/default.nix index 07d9e36..216d428 100644 --- a/templates/default.nix +++ b/templates/default.nix @@ -1,5 +1,4 @@ -{ self }: -{ +rec { basic = { path = ./basic; description = "A basic template"; @@ -25,5 +24,5 @@ ''; }; - defaultTemplate = self.basic; + defaultTemplate = basic; }