summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-02-13 02:45:06 -0500
committerseth <[email protected]>2024-02-13 02:53:32 -0500
commitd52218cd68f7724f85aacabe5d275396291a7fcd (patch)
treeac367f83d90f05320df45c705db74180f606d948 /flake.nix
parentca386b74ecaebaf8271ac47fa3d91ddf4779f7d2 (diff)
nix: use treefmt
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix21
1 files changed, 15 insertions, 6 deletions
diff --git a/flake.nix b/flake.nix
index 9405636..618eb5a 100644
--- a/flake.nix
+++ b/flake.nix
@@ -9,7 +9,7 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
- parts = {
+ flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
@@ -24,10 +24,18 @@
inputs.nixpkgs.follows = "nixpkgs";
};
- pre-commit = {
+ pre-commit-hooks-nix = {
url = "github:cachix/pre-commit-hooks.nix";
+ inputs = {
+ nixpkgs.follows = "nixpkgs";
+ nixpkgs-stable.follows = "nixpkgs";
+ flake-compat.follows = "";
+ };
+ };
+
+ treefmt-nix = {
+ url = "github:numtide/treefmt-nix";
inputs.nixpkgs.follows = "nixpkgs";
- inputs.nixpkgs-stable.follows = "nixpkgs";
};
procfile-nix = {
@@ -36,11 +44,12 @@
};
};
- outputs = {parts, ...} @ inputs:
- parts.lib.mkFlake {inherit inputs;} {
+ outputs = inputs:
+ inputs.flake-parts.lib.mkFlake {inherit inputs;} {
imports = [
- inputs.pre-commit.flakeModule
+ inputs.pre-commit-hooks-nix.flakeModule
inputs.procfile-nix.flakeModule
+ inputs.treefmt-nix.flakeModule
./nix/ci.nix
./nix/deployment.nix