generated from Luis/nextjs-python-web-template
Merge pull request 'templates: add template for enw clan' (#20) from flake-template into main
This commit is contained in:
25
templates/new-clan/flake.nix
Normal file
25
templates/new-clan/flake.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
description = "";
|
||||
|
||||
inputs = {
|
||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||
flake-compat = {
|
||||
url = "github:edolstra/flake-compat";
|
||||
flake = false;
|
||||
};
|
||||
nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user