aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/nix/templates/dev
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/nix/templates/dev')
-rw-r--r--dot_config/nix/templates/dev/dot_envrc1
-rw-r--r--dot_config/nix/templates/dev/flake.nix29
2 files changed, 30 insertions, 0 deletions
diff --git a/dot_config/nix/templates/dev/dot_envrc b/dot_config/nix/templates/dev/dot_envrc
new file mode 100644
index 0000000..3550a30
--- /dev/null
+++ b/dot_config/nix/templates/dev/dot_envrc
@@ -0,0 +1 @@
+use flake
diff --git a/dot_config/nix/templates/dev/flake.nix b/dot_config/nix/templates/dev/flake.nix
new file mode 100644
index 0000000..84b3179
--- /dev/null
+++ b/dot_config/nix/templates/dev/flake.nix
@@ -0,0 +1,29 @@
+{
+ description = "Project dev shell";
+
+ inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
+
+ outputs = { self, nixpkgs }:
+ let
+ systems = [ "x86_64-linux" "aarch64-linux" ];
+ forAllSystems = nixpkgs.lib.genAttrs systems;
+ in
+ {
+ devShells = forAllSystems (system:
+ let
+ pkgs = nixpkgs.legacyPackages.${system};
+ in
+ {
+ default = pkgs.mkShell {
+ packages = with pkgs; [
+ # Add per-project tools here.
+ # Example: nodejs_22 python313 cargo gcc
+ ];
+
+ shellHook = ''
+ # Per-project env setup (printed once on shell entry).
+ '';
+ };
+ });
+ };
+}