Initial commit

This commit is contained in:
Aleksandr 2024-12-17 00:22:23 +03:00
commit 1518f7007b
39 changed files with 1779 additions and 0 deletions

27
m/rust.nix Normal file
View 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
];
};
}