staticrypt 1.1.1

Static encryption for string literals and binary data
Documentation
{ rustToolchain, cargoToml }:
{ pkgs, ... }:
{
  # rust
  programs.rustfmt = {
    enable = true;
    package = rustToolchain;
    edition = cargoToml.workspace.package.edition or cargoToml.package.edition;
  };

  # nix
  programs.nixfmt.enable = true;

  # toml
  programs.taplo.enable = true;

  # markdown, yaml, etc.
  programs.prettier = {
    enable = true;
    settings = {
      trailingComma = "all";
      semi = true;
      printWidth = 120;
      singleQuote = true;
    };
  };

  programs.typos = {
    enable = true;
    includes = [
      "*.rs"
      "*.md"
      "*.yml"
    ];
  };
}