From 83e404f000dbba6cbff70b68adbaacb775d33857 Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 26 Apr 2023 07:35:04 +0000 Subject: [PATCH] templates: categorize by pkgs v.s. env --- flake.nix | 12 ++++++------ templates/{ => env}/python-data/flake.lock | 0 templates/{ => env}/python-data/flake.nix | 0 templates/{rust => pkgs/rust-inline}/Cargo.lock | 0 templates/{rust => pkgs/rust-inline}/Cargo.toml | 0 templates/{rust => pkgs/rust-inline}/flake.lock | 0 templates/{rust => pkgs/rust-inline}/flake.nix | 0 templates/{rust => pkgs/rust-inline}/src/main.rs | 0 8 files changed, 6 insertions(+), 6 deletions(-) rename templates/{ => env}/python-data/flake.lock (100%) rename templates/{ => env}/python-data/flake.nix (100%) rename templates/{rust => pkgs/rust-inline}/Cargo.lock (100%) rename templates/{rust => pkgs/rust-inline}/Cargo.toml (100%) rename templates/{rust => pkgs/rust-inline}/flake.lock (100%) rename templates/{rust => pkgs/rust-inline}/flake.nix (100%) rename templates/{rust => pkgs/rust-inline}/src/main.rs (100%) diff --git a/flake.nix b/flake.nix index 14c724bd0..838c60c66 100644 --- a/flake.nix +++ b/flake.nix @@ -282,18 +282,18 @@ }; templates = { - python-data = { + env.python-data = { # initialize with: - # - `nix flake init -t '/home/colin/dev/nixos/#python-data'` + # - `nix flake init -t '/home/colin/dev/nixos/#env.python-data'` # then enter with: # - `nix develop` - path = ./templates/python-data; + path = ./templates/env/python-data; description = "python environment for data processing"; }; - rust = { + pkgs.rust-inline = { # initialize with: - # - `nix flake init -t '/home/colin/dev/nixos/#rust'` - path = ./templates/rust; + # - `nix flake init -t '/home/colin/dev/nixos/#pkgs.rust-inline'` + path = ./templates/pkgs/rust-inline; description = "rust package and development environment"; }; }; diff --git a/templates/python-data/flake.lock b/templates/env/python-data/flake.lock similarity index 100% rename from templates/python-data/flake.lock rename to templates/env/python-data/flake.lock diff --git a/templates/python-data/flake.nix b/templates/env/python-data/flake.nix similarity index 100% rename from templates/python-data/flake.nix rename to templates/env/python-data/flake.nix diff --git a/templates/rust/Cargo.lock b/templates/pkgs/rust-inline/Cargo.lock similarity index 100% rename from templates/rust/Cargo.lock rename to templates/pkgs/rust-inline/Cargo.lock diff --git a/templates/rust/Cargo.toml b/templates/pkgs/rust-inline/Cargo.toml similarity index 100% rename from templates/rust/Cargo.toml rename to templates/pkgs/rust-inline/Cargo.toml diff --git a/templates/rust/flake.lock b/templates/pkgs/rust-inline/flake.lock similarity index 100% rename from templates/rust/flake.lock rename to templates/pkgs/rust-inline/flake.lock diff --git a/templates/rust/flake.nix b/templates/pkgs/rust-inline/flake.nix similarity index 100% rename from templates/rust/flake.nix rename to templates/pkgs/rust-inline/flake.nix diff --git a/templates/rust/src/main.rs b/templates/pkgs/rust-inline/src/main.rs similarity index 100% rename from templates/rust/src/main.rs rename to templates/pkgs/rust-inline/src/main.rs