Initial commit
This commit is contained in:
commit
1518f7007b
39 changed files with 1779 additions and 0 deletions
27
m/rust.nix
Normal file
27
m/rust.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ pkgs, config, inputs, lib, ... }:
|
||||
let
|
||||
rust = config.maid.rust;
|
||||
in
|
||||
{
|
||||
options.maid.rust = {
|
||||
enable = lib.mkEnableOption "rust toolchain";
|
||||
};
|
||||
|
||||
config = lib.mkIf rust.enable {
|
||||
nixpkgs.overlays = [ inputs.fenix.overlays.default ];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
(fenix.complete.withComponents [
|
||||
"rustc"
|
||||
"cargo"
|
||||
"rustfmt"
|
||||
"rust-src"
|
||||
"rust-analyzer"
|
||||
"clippy"
|
||||
"miri"
|
||||
])
|
||||
sccache
|
||||
cargo-edit
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue