aboutsummaryrefslogtreecommitdiff
path: root/flake-parts/flake.nix
diff options
context:
space:
mode:
authorkdam0 <me@kumardamani.net>2024-07-04 02:38:00 +0000
committerkdam0 <me@kumardamani.net>2024-07-04 02:38:00 +0000
commit961429150735efa060060a91f7e24dcec9bbb774 (patch)
tree8fc9544f9db2f4accd7b89375d33d6ab70a2186f /flake-parts/flake.nix
parent0a8f7fb544ee3dcf87d6cc0aeb67e8359ca142d5 (diff)
moved into sub-dir
Diffstat (limited to 'flake-parts/flake.nix')
-rw-r--r--flake-parts/flake.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/flake-parts/flake.nix b/flake-parts/flake.nix
new file mode 100644
index 0000000..5e92d96
--- /dev/null
+++ b/flake-parts/flake.nix
@@ -0,0 +1,40 @@
+{
+ description = "Description for the project";
+
+ inputs = {
+ nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
+ devenv.url = "github:cachix/devenv";
+ };
+
+ outputs = inputs@{ flake-parts, nixpkgs, ... }:
+ flake-parts.lib.mkFlake { inherit inputs; } {
+ imports = [
+ inputs.devenv.flakeModule
+ ];
+ systems = nixpkgs.lib.systems.flakeExposed;
+ perSystem = { config, self', inputs', pkgs, system, ... }: {
+
+ packages.default = pkgs.hello;
+
+ devenv.shells.projectA = {
+ packages = [ config.packages.default pkgs.jq ];
+ languages.python.enable = true;
+ languages.python.poetry.enable = true;
+ languages.python.poetry.activate.enable = true;
+ enterShell = ''
+ echo this is project A
+ pip list
+ '';
+ };
+
+ devenv.shells.projectB = {
+ packages = [ config.packages.default ];
+ languages.python.enable = true;
+ languages.python.poetry.enable = true;
+ enterShell = ''
+ echo this is project B
+ '';
+ };
+ };
+ };
+}