diff options
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; - }; - }; }; }; } |
