Skip to content

Commit 13b871c

Browse files
committed
refactor(templates/vanilla): remove default.nix boilerplate, use import-tree directly
1 parent 7ad2dbe commit 13b871c

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

templates/vanilla/flake.nix

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33

44
outputs = inputs: let
55
inherit (inputs.flake-parts.lib) mkFlake;
6-
specialArgs.customLib.scanPaths = path: [(inputs.import-tree.matchNot ".*/default\\.nix" path)];
76
in
8-
mkFlake {inherit inputs specialArgs;} ({inputs, ...}: {
7+
mkFlake {inherit inputs;} ({inputs, ...}: {
98
systems = import inputs.systems;
10-
imports = [./flake];
9+
imports = [(inputs.import-tree ./flake)];
1110
});
1211

1312
inputs = {

templates/vanilla/flake/default.nix

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)