feat: add templates

This commit is contained in:
2025-08-05 04:41:27 +00:00
parent 492597b7ab
commit bb16555d4f
5 changed files with 164 additions and 0 deletions

34
template/rust/flake.nix Normal file
View File

@@ -0,0 +1,34 @@
{
description = "";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs = {
nixpkgs.follows = "nixpkgs";
};
};
util = {
url = "github:hectic-lab/util.nix?ref=fix/postgres-extension";
inputs = {
nixpkgs.follows = "nixpkgs";
};
};
};
outputs = { self, nixpkgs, rust-overlay, util }:
let
overlays = [ (import rust-overlay) util.overlays.default ];
in
util.lib.forAllSystemsWithPkgs overlays ({ system, pkgs }:
let
lib = pkgs.lib;
in
{
### DEV SHELL ###
devShells.${system} = {
default = import ./devshell/default.nix { inherit pkgs; };
};
}
);
}