Migrate config from dotfiles
This commit is contained in:
19
modules/dev/rust.nix
Normal file
19
modules/dev/rust.nix
Normal file
@ -0,0 +1,19 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
with lib.my;
|
||||
let cfg = config.modules.dev.rust;
|
||||
in {
|
||||
options.modules.dev.rust = {
|
||||
enable = mkBoolOpt false;
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
user.packages = with pkgs; [
|
||||
rustc
|
||||
rustup
|
||||
rustfmt
|
||||
rust-bindgen
|
||||
];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user