Nix fmt rfc style (more or less)
This commit is contained in:
parent
e7496c447a
commit
515f098644
146 changed files with 2607 additions and 906 deletions
|
|
@ -1,21 +1,52 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
let tomlGenerate = (pkgs.formats.toml { }).generate; in
|
||||
{ pkgs
|
||||
, lib
|
||||
, config
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
tomlGenerate = (pkgs.formats.toml { }).generate;
|
||||
in
|
||||
{
|
||||
home.packages = (builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
bacon cargo cargo-audit cargo-criterion cargo-deadlinks cargo-expand
|
||||
cargo-flamegraph cargo-fuzz cargo-hack cargo-hakari cargo-inspect
|
||||
cargo-modules cargo-outdated cargo-profiler cargo-release cargo-show-asm
|
||||
cargo-spellcheck cargo-tarpaulin cargo-udeps cargo-watch cargo-workspaces
|
||||
clippy rustc rustfmt;
|
||||
# cargo-about
|
||||
# cargo-auditable
|
||||
# cargo-deny
|
||||
# cargo-deps
|
||||
# cargo-feature
|
||||
})
|
||||
++ lib.optionals config.programs.helix.enable (builtins.attrValues { inherit (pkgs) lldb rust-analyzer; })
|
||||
++ lib.optionals config.programs.kakoune.enable (builtins.attrValues { inherit (pkgs) rust-analyzer; });
|
||||
home.packages =
|
||||
(builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
bacon
|
||||
cargo
|
||||
cargo-audit
|
||||
cargo-criterion
|
||||
cargo-deadlinks
|
||||
cargo-expand
|
||||
cargo-flamegraph
|
||||
cargo-fuzz
|
||||
cargo-hack
|
||||
cargo-hakari
|
||||
cargo-inspect
|
||||
cargo-modules
|
||||
cargo-outdated
|
||||
cargo-profiler
|
||||
cargo-release
|
||||
cargo-show-asm
|
||||
cargo-spellcheck
|
||||
cargo-tarpaulin
|
||||
cargo-udeps
|
||||
cargo-watch
|
||||
cargo-workspaces
|
||||
clippy
|
||||
rustc
|
||||
rustfmt
|
||||
;
|
||||
# cargo-about
|
||||
# cargo-auditable
|
||||
# cargo-deny
|
||||
# cargo-deps
|
||||
# cargo-feature
|
||||
})
|
||||
++ lib.optionals config.programs.helix.enable (
|
||||
builtins.attrValues { inherit (pkgs) lldb rust-analyzer; }
|
||||
)
|
||||
++ lib.optionals config.programs.kakoune.enable (
|
||||
builtins.attrValues { inherit (pkgs) rust-analyzer; }
|
||||
);
|
||||
|
||||
home.file.".cargo/config.toml".source = tomlGenerate "cargo-config" {
|
||||
build.rustc-wrapper = "${pkgs.sccache}/bin/sccache";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue