summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-05-22 22:00:02 -0400
committerseth <[email protected]>2024-05-22 20:45:24 -0600
commit8fd8b7e53d59a034706dd7eaad6b608721ce3cdb (patch)
tree2ce7e4a8b7eafc9d8550a54aa6d4f34d678d76f5 /flake.nix
parent329bf8a3384474cfe45ecae142dfb7d97b699aa2 (diff)
move to zola
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix36
1 files changed, 21 insertions, 15 deletions
diff --git a/flake.nix b/flake.nix
index 129b5d7..9450302 100644
--- a/flake.nix
+++ b/flake.nix
@@ -1,11 +1,15 @@
{
description = "seth's website";
- 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"
@@ -16,14 +20,20 @@
forAllSystems = fn: nixpkgs.lib.genAttrs systems (system: fn nixpkgs.legacyPackages.${system});
in {
- checks = forAllSystems (
- {
- pkgs,
- system,
- ...
- }:
- import ./nix/checks.nix (pkgs // {formatter = self.formatter.${system};})
- );
+ checks = forAllSystems (pkgs: let
+ flake-checks' = flake-checks.lib.mkChecks {
+ root = ./.;
+ inherit pkgs;
+ };
+ in {
+ inherit
+ (flake-checks')
+ actionlint
+ alejandra
+ deadnix
+ statix
+ ;
+ });
devShells = forAllSystems ({
pkgs,
@@ -31,8 +41,7 @@
...
}: {
default = import ./shell.nix {
- inherit system;
- nixpkgs = pkgs;
+ inherit pkgs system;
formatter = self.formatter.${system};
};
});
@@ -45,12 +54,9 @@
...
}: let
pkgs' = import ./. {
- inherit system;
- nixpkgs = pkgs;
+ inherit pkgs system;
};
in
pkgs' // {default = pkgs'.website;});
-
- overlays.default = final: prev: import ./overlay.nix final prev;
};
}