emacs support for new languages + dependencies

This commit is contained in:
2025-03-25 01:26:35 -06:00
parent 39ce87696c
commit 6846fc3eec
7 changed files with 68 additions and 3 deletions

19
modules/dev/rust.nix Normal file
View File

@@ -0,0 +1,19 @@
{
config,
lib,
pkgs,
...
}:
{
options.my.dev.rust.enable = lib.mkEnableOption "enable";
config = lib.mkIf config.my.dev.rust.enable {
users.users.jawz.packages = builtins.attrValues {
inherit (pkgs)
cargo # Rust package manager
rust-analyzer # Language server for Rust
clippy # Linter for Rust
rustfmt # Formatter for Rust code
;
};
};
}