This commit is contained in:
Invariantspace 2025-04-27 07:19:52 +08:00 committed by macronova
parent dc4de4c184
commit dfb4b1e765
Signed by: macronova
GPG key ID: CE969670FB4B4A56
10 changed files with 2029 additions and 5 deletions

View file

@ -1,6 +1,8 @@
{
inputs = {
devenv.url = "github:cachix/devenv";
espkgs.url = "github:mirrexagon/nixpkgs-esp-dev";
fenix.url = "github:nix-community/fenix";
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-python.url = "github:cachix/nixpkgs-python";
@ -9,6 +11,7 @@
outputs = inputs @ {
self,
devenv,
espkgs,
flake-utils,
nixpkgs,
...
@ -18,6 +21,7 @@
inherit system;
config.allowUnfree = true;
};
espPkgs = espkgs.packages.${system};
in {
packages = {
devenv-up = self.devShells.${system}.default.config.procfileScript;
@ -28,12 +32,33 @@
inherit inputs pkgs;
modules = [
{
env = {
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
};
git-hooks.hooks.alejandra.enable = true;
languages = {
nix.enable = true;
rust.enable = true;
python.enable = true;
rust = {
enable = true;
channel = "nightly";
components = [
"cargo"
"clippy"
"rustc"
"rustfmt"
"rust-analyzer"
"rust-src"
];
mold.enable = false;
};
typst.enable = true;
};
packages = with pkgs; [
espflash
espPkgs.esp-idf-esp32c6
ldproxy
];
}
];
};