{ description = "Nix utilities to manage koreader"; inputs = { nixpkgs.url = "github:nixos/nixpkgs"; flake-parts.url = "github:hercules-ci/flake-parts"; systems.url = "github:nix-systems/default"; treefmt-nix = { url = "github:numtide/treefmt-nix"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = inputs@{self, ...}: inputs.flake-parts.lib.mkFlake { inherit inputs self; } { systems = import inputs.systems; flake.overlays.default = import ./overlays; imports = [ inputs.treefmt-nix.flakeModule ./modules ]; perSystem = { pkgs, config, system, ... }: { _module.args.pkgs = import inputs.nixpkgs { inherit system; overlays = [ self.overlays.default ]; }; treefmt = { programs = { nixfmt = { enable = true; strict = true; }; }; }; devShells.default = pkgs.mkShellNoCC { inputsFrom = [ config.treefmt.build.devShell ]; nativeBuildInputs = with pkgs; [ nixd statix deadnix ]; }; }; }; }