mirror of
https://forge.katzen.cafe/katzen-cafe/iowo.git
synced 2024-11-24 14:28:44 +01:00
77 lines
1.8 KiB
Nix
77 lines
1.8 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
systems.url = "github:nix-systems/default";
|
|
devenv.url = "github:cachix/devenv";
|
|
fenix.url = "github:nix-community/fenix";
|
|
};
|
|
|
|
nixConfig = {
|
|
extra-trusted-public-keys = "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=";
|
|
extra-substituters = "https://devenv.cachix.org";
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
devenv,
|
|
fenix,
|
|
systems,
|
|
...
|
|
} @ inputs: let
|
|
forEachSystem = nixpkgs.lib.genAttrs (import systems);
|
|
in {
|
|
devShells =
|
|
forEachSystem
|
|
(system: let
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
toolchain = with fenix.packages.${system};
|
|
combine [
|
|
default.toolchain
|
|
rust-analyzer
|
|
];
|
|
in {
|
|
default = devenv.lib.mkShell {
|
|
inherit inputs pkgs;
|
|
modules = [
|
|
({
|
|
pkgs,
|
|
config,
|
|
...
|
|
}: {
|
|
# languages.rust = {
|
|
# enable = true;
|
|
# channel = "nightly";
|
|
# components = [
|
|
# "rustc"
|
|
# "cargo"
|
|
# "clippy"
|
|
# "rustfmt"
|
|
# "rust-src"
|
|
# "rust-analyzer"
|
|
# ];
|
|
# };
|
|
|
|
pre-commit.hooks = {
|
|
clippy.enable = false;
|
|
rustfmt.enable = true;
|
|
};
|
|
|
|
packages = with pkgs; [
|
|
just
|
|
nushell
|
|
ripgrep
|
|
typst
|
|
typst-lsp
|
|
mold
|
|
cargo-nextest
|
|
cargo-watch
|
|
toolchain
|
|
];
|
|
})
|
|
];
|
|
};
|
|
});
|
|
};
|
|
}
|