diff options
| author | Mica White <botahamec@outlook.com> | 2026-08-25 21:15:52 -0400 |
|---|---|---|
| committer | Mica White <botahamec@outlook.com> | 2026-08-25 21:15:52 -0400 |
| commit | 3b1549699693504382d9162d2bb1a73ac1eeccd9 (patch) | |
| tree | cb194aaa0e460822c4f5b1cb253b54a1226bf153 /devenv.nix | |
| parent | 25556174f5603b65155a2e13d15a666a8fcee597 (diff) | |
Add devenv
Diffstat (limited to 'devenv.nix')
| -rw-r--r-- | devenv.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/devenv.nix b/devenv.nix new file mode 100644 index 0000000..04cf216 --- /dev/null +++ b/devenv.nix @@ -0,0 +1,35 @@ +{ pkgs, config, ... }: + +let + feluments = config.languages.rust.import ./. { }; +in +{ + delta.enable = true; + + languages.rust = { + enable = true; + components = [ "rustc" "rust-analyzer" "cargo" "rustfmt" "clippy" ]; + }; + packages = with pkgs; [ + git + bacon + cargo-seek + cargo-nextest + ]; + scripts.watcher = { + exec = '' + watchexec -c -e rs "cargo clippy && cargo test && cargo run" + ''; + packages = [ pkgs.watchexec ]; + }; + enterShell = '' + cargo update + ''; + git-hooks.hooks = { + rustfmt.enable = true; + clippy.enable = true; + }; + outputs = { + inherit feluments; + }; +} |
