diff options
| author | Isabella Bastaja <isabella@sorre.xyz> | 2026-04-19 12:21:12 +0200 |
|---|---|---|
| committer | Isabella Bastaja <isabella@sorre.xyz> | 2026-04-19 12:21:12 +0200 |
| commit | dbbac21b7cc1ac9b0b546f9983eaab7d0324c034 (patch) | |
| tree | 6e403be1c6f529b4698188cdcfd7eafbe1810ee7 /flake.nix | |
| parent | d4cc95fe9d1810f273900de3ed1d7cc40b4b2e94 (diff) | |
remove pre-commit and treefmt from flake
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 30 |
1 files changed, 1 insertions, 29 deletions
@@ -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; - }; - }; }; }; } |
