templates: add a minimal flake-parts template
This commit is contained in:
30
templates/minimal-flake-parts/flake.nix
Normal file
30
templates/minimal-flake-parts/flake.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||
|
||||
clan.url = "git+https://git.clan.lol/clan/clan-core?shallow=1";
|
||||
clan.inputs.nixpkgs.follows = "nixpkgs";
|
||||
clan.inputs.flake-parts.follows = "flake-parts";
|
||||
|
||||
flake-parts.url = "github:hercules-ci/flake-parts?shallow=1";
|
||||
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
|
||||
|
||||
};
|
||||
|
||||
outputs =
|
||||
inputs@{ flake-parts, ... }:
|
||||
flake-parts.lib.mkFlake { inherit inputs; } (
|
||||
{ ... }:
|
||||
{
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
];
|
||||
|
||||
imports = [
|
||||
./checks.nix
|
||||
./clan.nix
|
||||
./devshells.nix
|
||||
];
|
||||
}
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user