{ inputs = { nixops4.follows = "nixops4-nixos/nixops4"; nixops4-nixos.url = "github:nixops4/nixops4-nixos"; }; outputs = inputs: import ./mkFlake.nix inputs ( { inputs, sources, ... }: { imports = [ "${sources.git-hooks}/flake-module.nix" inputs.nixops4.modules.flake.default ./deployment/flake-part.nix ./infra/flake-part.nix ./keys/flake-part.nix ./secrets/flake-part.nix ./services/tests/flake-part.nix ]; perSystem = { pkgs, lib, system, ... }: { checks = { panel = (import ./. { inherit sources system; }).tests.panel.basic; }; formatter = pkgs.nixfmt-rfc-style; pre-commit.settings.hooks = let ## Add a directory here if pre-commit hooks shouldn't apply to it. optout = [ "npins" ]; excludes = map (dir: "^${dir}/") optout; addExcludes = lib.mapAttrs (_: c: c // { inherit excludes; }); in addExcludes { nixfmt-rfc-style.enable = true; deadnix.enable = true; trim-trailing-whitespace.enable = true; shellcheck.enable = true; }; }; } ); }