diff options
| author | Mica White <botahamec@outlook.com> | 2026-09-06 18:38:41 -0400 |
|---|---|---|
| committer | Mica White <botahamec@outlook.com> | 2026-09-06 18:38:41 -0400 |
| commit | d4cf94230b4d81338f1580e306fee1955c63f0f1 (patch) | |
| tree | 7a5e1fc419785aeb3275839c4053137666e8fb7a /devenv.nix | |
| parent | b097c8ffb9412d25c39212ff77dbb9db9b2a2d86 (diff) | |
Setup devenv
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; + }; +} |
