feat: added devshell default input template for nix projects

This commit is contained in:
Ceferino Patino 2025-09-14 23:14:15 -05:00
commit ad876c75f0
Signed by: c4patino
SSH key fingerprint: SHA256:9fQ9TsujGrdNNi76mnsu63v7dS5JOmHRZEqBOl49OR8
2 changed files with 44 additions and 0 deletions

View file

@ -59,6 +59,7 @@
alias = {
shells.default = "yumeami";
templates.default = "devshell";
};
};
}

View file

@ -0,0 +1,43 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-25.05";
flake-utils.url = "github:numtide/flake-utils";
treefmt-nix.url = "github:numtide/treefmt-nix";
};
outputs = {
flake-utils,
nixpkgs,
treefmt-nix,
...
}:
flake-utils.lib.eachDefaultSystem (
system: let
pkgs = import nixpkgs {inherit system;};
treefmtConfig = {...}: {
projectRootFile = "flake.nix";
programs = {
alejandra.enable = true;
};
};
treefmtEval = treefmt-nix.lib.evalModule pkgs (treefmtConfig {inherit pkgs;});
in {
formatter = treefmtEval.config.build.wrapper;
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
];
buildInputs = with pkgs; [
];
packages = with pkgs; [
];
shellHook = ''
'';
};
}
);
}