clan-template: introduce clan-flake-module
This commit is contained in:
9
templates/new-clan/clan-flake-module.nix
Normal file
9
templates/new-clan/clan-flake-module.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# AUTOMATICALLY GENERATED by clan
|
||||||
|
{ ... }: {
|
||||||
|
imports =
|
||||||
|
let
|
||||||
|
relPaths = builtins.fromJSON (builtins.readFile ./imports.json);
|
||||||
|
paths = map (path: ./. + path) relPaths;
|
||||||
|
in
|
||||||
|
paths;
|
||||||
|
}
|
||||||
@@ -8,14 +8,8 @@
|
|||||||
|
|
||||||
outputs = inputs @ { flake-parts, ... }:
|
outputs = inputs @ { flake-parts, ... }:
|
||||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||||
|
imports = [
|
||||||
systems = builtins.fromJSON (builtins.readFile ./systems.json);
|
./clan-flake-module.nix
|
||||||
|
];
|
||||||
imports =
|
|
||||||
let
|
|
||||||
relPaths = builtins.fromJSON (builtins.readFile ./imports.json);
|
|
||||||
paths = map (path: ./. + path) relPaths;
|
|
||||||
in
|
|
||||||
paths;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user