mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-07-28 14:26:59 -07:00
- `nix-vm-test` does not use `flake-utils` as input anymore, so no reason to override it. - `pkgs.system` was deprecated, now `pkgs.stdenv.hostPlatform.system` is to be used. This is more precise, in particular for cross compilation. - Avoid shadowing of symbols in `relase-package.nix` to make the code clearer. - `lib.trivial.importTOML` is the canonical way to read and parse a TOML file. - `toString` is in the prelude, no reason to write `builtins.toString`. - Remove some unnecessary parentheses. - Remove unused attributes in a function arguments. Signed-off-by: wucke13 <wucke13+github@gmail.com>
34 lines
519 B
Nix
34 lines
519 B
Nix
{ ... }:
|
|
{
|
|
# Used to find the project root
|
|
projectRootFile = "flake.nix";
|
|
programs.nixfmt.enable = true;
|
|
programs.prettier = {
|
|
enable = true;
|
|
includes = [
|
|
"*.css"
|
|
"*.html"
|
|
"*.js"
|
|
"*.json"
|
|
"*.json5"
|
|
"*.md"
|
|
"*.mdx"
|
|
"*.yaml"
|
|
"*.yml"
|
|
];
|
|
excludes = [ "supply-chain/*" ];
|
|
};
|
|
programs.taplo = {
|
|
enable = true;
|
|
includes = [
|
|
"*.toml"
|
|
];
|
|
};
|
|
programs.rustfmt = {
|
|
enable = true;
|
|
includes = [
|
|
"*.rs"
|
|
];
|
|
};
|
|
}
|