Whether to enable cargo fmt check in pre-commit hook.
Type: boolean
Default:
true
Example:
true
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/cargo.nix
Whether to enable cargo lock check in pre-commit hook.
Type: boolean
Default:
true
Example:
true
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/cargo.nix
Whether to enable convco integration.
Type: boolean
Default:
true
Example:
true
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/convco.nix
Whether to enable convco git commit-msg hook.
Type: boolean
Default:
true
Example:
true
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/convco.nix
craneLib to use by default
Default value is craneLib initialized with config.toolchain.channel
toolchain with config.toolchain.components
Type: attribute set
Default:
{
appendCrateRegistries = <function>;
buildDepsOnly = <function, args: {cargoBuildCommand?, cargoCheckCommand?, cargoExtraArgs?, cargoTestCommand?, cargoTestExtraArgs?}>;
buildPackage = <function, args: {cargoBuildCommand?, cargoExtraArgs?, cargoTestCommand?, cargoTestExtraArgs?}>;
buildTrunkPackage = <function, args: {trunkExtraArgs?, trunkExtraBuildArgs?, trunkIndexPath?, wasm-bindgen-cli?}>;
callPackage = <function>;
cargo = <derivation rust-stable-with-components-2024-05-02>;
cargoAudit = <function, args: {advisory-db, cargoAuditExtraArgs?, src}>;
cargoBuild = <function, args: {cargoArtifacts, cargoExtraArgs?}>;
cargoClippy = <function, args: {cargoArtifacts, cargoClippyExtraArgs?, cargoExtraArgs?}>;
cargoDeny = <function, args: {cargoDenyChecks?, cargoDenyExtraArgs?, cargoExtraArgs?}>;
cargoDoc = <function, args: {cargoDocExtraArgs?, cargoExtraArgs?}>;
cargoFmt = <function, args: {cargoExtraArgs?, rustFmtExtraArgs?}>;
cargoHelperFunctionsHook = <derivation cargoHelperFunctionsHook>;
cargoLlvmCov = <function, args: {cargoExtraArgs?, cargoLlvmCovCommand?, cargoLlvmCovExtraArgs?}>;
cargoNextest = <function, args: {cargoArtifacts, cargoExtraArgs?, cargoLlvmCovExtraArgs?, cargoNextestExtraArgs?, doInstallCargoArtifacts?, partitionType?, partitions?, withLlvmCov?}>;
cargoTarpaulin = <function, args: {cargoExtraArgs?, cargoTarpaulinExtraArgs?}>;
cargoTest = <function, args: {cargoArtifacts, cargoExtraArgs?, cargoTestExtraArgs?}>;
cleanCargoSource = <function>;
cleanCargoToml = <function, args: {cargoToml?, cargoTomlContents?}>;
clippy = <derivation rust-stable-with-components-2024-05-02>;
configureCargoCommonVarsHook = <derivation configureCargoCommonVarsHook>;
configureCargoVendoredDepsHook = <derivation configureCargoVendoredDepsHook>;
crateNameFromCargoToml = <function>;
crateRegistries = {
"registry+https://github.com/rust-lang/crates.io-index" = {
downloadUrl = "https://static.crates.io/crates/{crate}/{version}/download";
fetchurlExtraArgs = { };
};
};
devShell = <function, args: {checks?, inputsFrom?, packages?}>;
downloadCargoPackage = <function, args: {checksum, name, version}>;
downloadCargoPackageFromGit = <function, args: {allRefs?, git, ref?, rev, sha256?}>;
filterCargoSources = <function>;
findCargoFiles = <function>;
inheritCargoArtifactsHook = <derivation inheritCargoArtifactsHook>;
installCargoArtifactsHook = <derivation installCargoArtifactsHook>;
installFromCargoBuildLogHook = <derivation installFromCargoBuildLogHook>;
mkCargoDerivation = <function, args: {buildPhaseCargoCommand, cargoArtifacts, checkPhaseCargoCommand?, installPhaseCommand?}>;
mkDummySrc = <function, args: {cargoLock?, extraDummyScript?, src}>;
newScope = <function>;
overrideScope = <function>;
overrideToolchain = <function>;
packages = <function>;
path = <function>;
registryFromDownloadUrl = <function, args: {dl, fetchurlExtraArgs?, indexUrl, registryPrefix?}>;
registryFromGitIndex = <function, args: {fetchurlExtraArgs?, indexUrl, rev}>;
registryFromSparse = <function, args: {configSha256, fetchurlExtraArgs?, indexUrl}>;
removeReferencesToVendoredSourcesHook = <derivation removeReferencesToVendoredSourcesHook>;
replaceCargoLockHook = <derivation replaceCargoLockHook>;
rustc = <derivation rust-stable-with-components-2024-05-02>;
rustfmt = <derivation rust-stable-with-components-2024-05-02>;
urlForCargoPackage = <function, args: {checksum, name, source, version}>;
vendorCargoDeps = <function>;
vendorCargoRegistries = <function, args: {cargoConfigs?, lockPackages, overrideVendorCargoPackage?}>;
vendorGitDeps = <function, args: {lockPackages, outputHashes?, overrideVendorGitCheckout?}>;
vendorMultipleCargoDeps = <function, args: {cargoConfigs?, cargoLockContentsList?, cargoLockList?, cargoLockParsedList?, outputHashes?, overrideVendorCargoPackage?, overrideVendorGitCheckout?, registries?}>;
writeTOML = <function>;
}
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/crane.nix
Whether to enable direnv integration.
Type: boolean
Default:
true
Example:
true
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/direnv.nix
List of init hooks to execute when shell is entered
Type: list of string
Default:
[
""
]
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/env.nix
Packages to include in all dev shells
Type: list of package
Default:
[ ]
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/env.nix
Whether to enable the flakebox init
in dev shells.
Type: boolean
Default:
true
Example:
true
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/flakbox.nix
Whether to enable the flakebox binary integration.
Type: boolean
Default:
true
Example:
true
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/flakbox.nix
Whether to enable git pre-commit hook.
Type: boolean
Default:
true
Example:
true
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/git.nix
Attrset of hooks to to execute during git commit-msg hook
Type: attribute set of (null or string or path)
Default:
{ }
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/git.nix
Whether to enable git commit message template.
Type: boolean
Default:
true
Example:
true
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/git.nix
The body of the template content
Type: string or path
Default:
''
# Explain *why* this change is being made width limit ->|
''
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/git.nix
The head of the template content
Type: string or path
Default:
""
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/git.nix
Whether to enable git pre-commit hook.
Type: boolean
Default:
true
Example:
true
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/git.nix
Attrset of hooks to to execute during git pre-commit hook
Type: attribute set of (null or string or path)
Default:
{ }
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/git.nix
Whether to enable git pre-commit trailing newline check.
Type: boolean
Default:
true
Example:
true
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/git.nix
Whether to enable git pre-commit trailing whitespace check.
Type: boolean
Default:
true
Example:
true
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/git.nix
Whether to enable just integration.
Type: boolean
Default:
true
Example:
true
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/github.nix
Build matrix to use in the workflow strategy.matrix
of build
job
Type: attribute set
Default:
{
host = [
"macos-x86_64"
"macos-aarch64"
"linux"
];
include = [
{
host = "linux";
runs-on = "ubuntu-latest";
timeout = 60;
}
{
host = "macos-x86_64";
runs-on = "macos-13";
timeout = 60;
}
{
host = "macos-aarch64";
runs-on = "macos-14";
timeout = 60;
}
];
}
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/github.nix
Additional build matrix to deep merge with buildMatrix
Type: attribute set
Default:
{ }
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/github.nix
List of outputs to build
Type: list of string
Default:
[ ]
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/github.nix
Name of the cachix repository to use for cache
Type: null or string
Default:
null
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/github.nix
Value of a runs-on to use for default Linu workflows (lint, self-check, etc.)
Type: anything
Default:
"ubuntu-latest"
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/github.nix
Set of workflows to generate in .github/workflows/
".
Type: attribute set of (submodule)
Default:
{ }
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/github.nix
Whether this workflow file should be generated. This option allows specific workflow files to be disabled.
Type: boolean
Default:
true
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/github.nix
Content of the workflow
Type: attribute set of anything
Default:
null
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/github.nix
Whether to enable just integration.
Type: boolean
Default:
true
Example:
true
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/just.nix
List of files to generate import ...
statement for (as a strings in import
Justfile directive)
Type: list of string
Default:
[ ]
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/just.nix
Attrset of section of justfile (possibly with multiple rules)
Notably the name is used only for config identification (e.g. disabling) and actual justfile rule name must be used in the value (content of the file).
Type: attribute set of (submodule)
Default:
{ }
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/just.nix
Whether this rule should be generated. This option allows specific rules to be disabled.
Type: boolean
Default:
true
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/just.nix
Order of this rule in relation to the others ones.
The semantics are the same as with lib.mkOrder
. Smaller values have
a greater priority.
Type: string or path
Default:
1000
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/just.nix
Order of this rule in relation to the others ones.
The semantics are the same as with lib.mkOrder
. Smaller values have
a greater priority.
Type: signed integer
Default:
1000
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/just.nix
Whether to enable message of a day.
Type: boolean
Default:
false
Example:
true
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/motd.nix
Command to execute to display motd
Type: string
Default:
""
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/motd.nix
Set of files that will be generated as as “Flakebox Root Dir”.
Type: attribute set of (submodule)
Default:
{ }
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/rootDir.nix
Whether this root dir file should be generated. This option allows specific root dir files to be disabled.
Type: boolean
Default:
true
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/rootDir.nix
If set to something else than symlink
,
the file is copied instead of symlinked, with the given
file mode.
Type: string
Default:
"symlink"
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/rootDir.nix
Path of the source file.
Type: path
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/rootDir.nix
Name of symlink (relative to root dir). Defaults to the attribute name.
Type: string
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/rootDir.nix
Text of the file.
Type: null or strings concatenated with “\n”
Default:
null
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/rootDir.nix
Derivation containing all rootDir files/symlinks
Type: package
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/rootDir.nix
Whether to enable clippy check in pre-commit hook.
Type: boolean
Default:
false
Example:
true
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/rust.nix
Whether to enable leftover dbg!
check in pre-commit hook.
Type: boolean
Default:
true
Example:
true
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/rust.nix
Whether to enable generation of .rustfmt.toml.
Type: boolean
Default:
true
Example:
true
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/rust.nix
The content of the file
Type: string
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/rust.nix
Whether to enable semgrep integration.
Type: boolean
Default:
true
Example:
true
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/semgrep.nix
Whether to enable semgrep git pre-commit hook.
Type: boolean
Default:
true
Example:
true
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/semgrep.nix
Whether to enable shellcheck integration.
Type: boolean
Default:
true
Example:
true
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/shellcheck.nix
Whether to enable shellcheck git pre-commit hook.
Type: boolean
Default:
true
Example:
true
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/shellcheck.nix
The channel to source the default toolchain from
Defaults to the the value of the stable channel.
Type: string
Default:
"stable"
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/toolchain.nix
Components to include in the default toolchains
Type: list of string
Default:
[
"rustc"
"cargo"
"clippy"
"rust-analyzer"
"rust-src"
]
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/toolchain.nix
rustfmt package to use in the shell and lints
Separate from the toolchain as it’s common to want a custom (nightly) version, for all the great yet unstable features.
Defaults to the rustfmt from the nightly channel default profile.
Type: package
Default:
<derivation rust-nightly-default-with-components-2024-06-08>
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/toolchain.nix
Whether to enable typos integration.
Type: boolean
Default:
true
Example:
true
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/typos.nix
Whether to enable typos git pre-commit hook.
Type: boolean
Default:
true
Example:
true
Declared by:
- /nix/store/h7sc4acdhxrjb764vxfdcbqgnsj1r5ca-source/lib/modules/typos.nix