📝 Developer environment setup on NixOS (#454)
* 🧑💻feat: update nix flake dev environment - This removes installing `docker`, `rust-analyzer`, `rustfmt` imperatively. `nodejs` is used to install dev dependencies `stylelint-config-standard` and `postcss-lit` - The `shellHook`s adds `rusty-hook` CLI to the PATH and the node dev dependencies to the NODE_PATH. * 📝 docs(developing): update NixOS dev environment setup * fix: remove nonvital guide and improve grammar --------- Co-authored-by: neon_arch <mustafadhuleb53@gmail.com>
This commit is contained in:
parent
12843414f8
commit
0943b8b8c4
2 changed files with 20 additions and 12 deletions
10
flake.nix
10
flake.nix
|
@ -32,24 +32,32 @@
|
|||
buildInputs = [
|
||||
actionlint
|
||||
cargo
|
||||
docker
|
||||
haskellPackages.hadolint
|
||||
nodejs
|
||||
nodePackages_latest.cspell
|
||||
nodePackages_latest.eslint
|
||||
nodePackages_latest.markdownlint-cli2
|
||||
nodePackages_latest.stylelint
|
||||
redis
|
||||
rustPackages.clippy
|
||||
rust-analyzer
|
||||
cargo-watch
|
||||
rustc
|
||||
rustfmt
|
||||
yamllint
|
||||
openssl
|
||||
pkg-config
|
||||
];
|
||||
RUST_SRC_PATH = rustPlatform.rustLibSrc;
|
||||
shellHook = ''
|
||||
export PATH="$PATH:$HOME/.cargo/bin"
|
||||
export NODE_PATH="$NODE_PATH:./node_modules"
|
||||
'';
|
||||
};
|
||||
|
||||
# Build via "nix build .#websurfx", which is basically just
|
||||
# calls the build function
|
||||
packages.websurfx = packages.default;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue