summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/flake.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/template/flake.nix b/template/flake.nix
new file mode 100644
index 0000000..4a06e40
--- /dev/null
+++ b/template/flake.nix
@@ -0,0 +1,27 @@
+{
+ inputs = {
+ nixpkgs.url = "nixpkgs/nixpkgs-unstable";
+ flake-utils.url = "github:numtide/flake-utils";
+ flake-checks.url = "github:getchoo/flake-checks";
+ };
+
+ outputs = {
+ nixpkgs,
+ flake-utils,
+ flake-checks,
+ ...
+ }:
+ flake-utils.lib.eachDefaultSystem (system: let
+ pkgs = nixpkgs.legacyPackages.${system};
+ flake-checks' = flake-checks.lib.mkChecks {
+ inherit pkgs;
+ root = ./.;
+ };
+ in {
+ checks = {
+ check-actionlint = flake-checks'.actionlint;
+ check-alejandra = flake-checks'.alejandra;
+ check-deadnix = flake-checks'.deadnix;
+ };
+ });
+}