summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsabella Bastaja <isabella@sorre.xyz>2026-04-19 12:21:12 +0200
committerIsabella Bastaja <isabella@sorre.xyz>2026-04-19 12:21:12 +0200
commitdbbac21b7cc1ac9b0b546f9983eaab7d0324c034 (patch)
tree6e403be1c6f529b4698188cdcfd7eafbe1810ee7
parentd4cc95fe9d1810f273900de3ed1d7cc40b4b2e94 (diff)
remove pre-commit and treefmt from flake
-rw-r--r--flake.lock83
-rw-r--r--flake.nix30
2 files changed, 2 insertions, 111 deletions
diff --git a/flake.lock b/flake.lock
index 6b0e3cb..7225bec 100644
--- a/flake.lock
+++ b/flake.lock
@@ -1,21 +1,5 @@
{
"nodes": {
- "flake-compat": {
- "flake": false,
- "locked": {
- "lastModified": 1767039857,
- "narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=",
- "owner": "NixOS",
- "repo": "flake-compat",
- "rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab",
- "type": "github"
- },
- "original": {
- "owner": "NixOS",
- "repo": "flake-compat",
- "type": "github"
- }
- },
"flake-parts": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
@@ -34,27 +18,6 @@
"type": "github"
}
},
- "gitignore": {
- "inputs": {
- "nixpkgs": [
- "pre-commit-hooks-nix",
- "nixpkgs"
- ]
- },
- "locked": {
- "lastModified": 1709087332,
- "narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=",
- "owner": "hercules-ci",
- "repo": "gitignore.nix",
- "rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
- "type": "github"
- },
- "original": {
- "owner": "hercules-ci",
- "repo": "gitignore.nix",
- "type": "github"
- }
- },
"nixpkgs": {
"locked": {
"lastModified": 1771369470,
@@ -86,54 +49,10 @@
"type": "github"
}
},
- "pre-commit-hooks-nix": {
- "inputs": {
- "flake-compat": "flake-compat",
- "gitignore": "gitignore",
- "nixpkgs": [
- "nixpkgs"
- ]
- },
- "locked": {
- "lastModified": 1770726378,
- "narHash": "sha256-kck+vIbGOaM/dHea7aTBxdFYpeUl/jHOy5W3eyRvVx8=",
- "owner": "cachix",
- "repo": "pre-commit-hooks.nix",
- "rev": "5eaaedde414f6eb1aea8b8525c466dc37bba95ae",
- "type": "github"
- },
- "original": {
- "owner": "cachix",
- "repo": "pre-commit-hooks.nix",
- "type": "github"
- }
- },
"root": {
"inputs": {
"flake-parts": "flake-parts",
- "nixpkgs": "nixpkgs",
- "pre-commit-hooks-nix": "pre-commit-hooks-nix",
- "treefmt-nix": "treefmt-nix"
- }
- },
- "treefmt-nix": {
- "inputs": {
- "nixpkgs": [
- "nixpkgs"
- ]
- },
- "locked": {
- "lastModified": 1770228511,
- "narHash": "sha256-wQ6NJSuFqAEmIg2VMnLdCnUc0b7vslUohqqGGD+Fyxk=",
- "owner": "numtide",
- "repo": "treefmt-nix",
- "rev": "337a4fe074be1042a35086f15481d763b8ddc0e7",
- "type": "github"
- },
- "original": {
- "owner": "numtide",
- "repo": "treefmt-nix",
- "type": "github"
+ "nixpkgs": "nixpkgs"
}
}
},
diff --git a/flake.nix b/flake.nix
index e5ef109..584e6e4 100644
--- a/flake.nix
+++ b/flake.nix
@@ -4,23 +4,11 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
- treefmt-nix = {
- url = "github:numtide/treefmt-nix";
- inputs.nixpkgs.follows = "nixpkgs";
- };
- pre-commit-hooks-nix = {
- url = "github:cachix/pre-commit-hooks.nix";
- inputs.nixpkgs.follows = "nixpkgs";
- };
};
outputs =
inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
- imports = [
- inputs.treefmt-nix.flakeModule
- inputs.pre-commit-hooks-nix.flakeModule
- ];
systems = [ "x86_64-linux" ];
perSystem =
{ config, pkgs, ... }:
@@ -77,24 +65,8 @@
minimalMkShell = pkgs.mkShell.override { stdenv = stdenvMinimal; };
in
minimalMkShell {
- packages = deps ++ builtins.attrValues config.treefmt.build.programs;
- };
-
- treefmt = {
- projectRootFile = "flake.nix";
- programs = {
- nixfmt.enable = true;
+ packages = deps ++ [ pkgs.darkhttpd ];
};
- };
-
- pre-commit = {
- check.enable = true;
- settings.hooks = {
- treefmt.package = config.treefmt.build.wrapper;
- treefmt.enable = true;
- deadnix.enable = true;
- };
- };
};
};
}