summaryrefslogtreecommitdiff
path: root/devenv.nix
blob: 7c9d6e68579826523ad7cc4fb9988af02ba38212 (plain)
{ pkgs, config, ... }:

let
  cgit-syntax-highlight = config.languages.rust.import ./. { };
in
{
  delta.enable = true;
  
  languages.rust = {
    enable = true;
    components = [ "rustc" "rust-analyzer" "cargo" "rustfmt" "clippy" ];
  };
  packages = with pkgs; [
    git
  ];
  enterShell = ''
      cargo update
    '';
  git-hooks.hooks = {
    rustfmt.enable = true;
    clippy.enable = true;
  };
  outputs = {
    inherit cgit-syntax-highlight;
  };
}