diff options
Diffstat (limited to 'devenv.nix')
| -rw-r--r-- | devenv.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/devenv.nix b/devenv.nix new file mode 100644 index 0000000..7c9d6e6 --- /dev/null +++ b/devenv.nix @@ -0,0 +1,26 @@ +{ 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; + }; +} |
