summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-05-20 21:08:11 -0400
committerseth <[email protected]>2024-05-20 21:08:25 -0400
commit62933d57b8740d1bdfa48f0a0efbdd8a80f6ccd6 (patch)
tree6afea48587850f6cfd50c216174042ba1cf2e19a /flake.nix
parentb84ec810e5c2d07801388bba73abff5a2e9ed4a4 (diff)
nix: use flake-checks
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix25
1 files changed, 21 insertions, 4 deletions
diff --git a/flake.nix b/flake.nix
index ae25b25..a4ea185 100644
--- a/flake.nix
+++ b/flake.nix
@@ -1,11 +1,15 @@
{
description = "getchoo's neovim config";
- inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
+ inputs = {
+ nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
+ flake-checks.url = "github:getchoo/flake-checks";
+ };
outputs = {
self,
nixpkgs,
+ flake-checks,
}: let
systems = [
"x86_64-linux"
@@ -14,10 +18,23 @@
"aarch64-darwin"
];
- forSystem = system: fn: fn nixpkgs.legacyPackages.${system};
- forAllSystems = fn: nixpkgs.lib.genAttrs systems (system: forSystem system fn);
+ forAllSystems = fn: nixpkgs.lib.genAttrs systems (system: fn nixpkgs.legacyPackages.${system});
in {
- checks = forAllSystems (pkgs: import ./checks.nix {inherit pkgs self;});
+ checks = forAllSystems (pkgs: let
+ flake-checks' = flake-checks.lib.mkChecks {
+ root = ./.;
+ inherit pkgs;
+ };
+ in {
+ inherit
+ (flake-checks')
+ actionlint
+ alejandra
+ selene
+ statix
+ stylua
+ ;
+ });
devShells = forAllSystems (pkgs: {
default = pkgs.mkShellNoCC {