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, ... }:
|
||||
flake-parts.lib.mkFlake { inherit inputs; } {
|
||||
|
||||
systems = builtins.fromJSON (builtins.readFile ./systems.json);
|
||||
|
||||
imports =
|
||||
let
|
||||
relPaths = builtins.fromJSON (builtins.readFile ./imports.json);
|
||||
paths = map (path: ./. + path) relPaths;
|
||||
in
|
||||
paths;
|
||||
imports = [
|
||||
./clan-flake-module.nix
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user