aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorkdam0 <me@kumardamani.net>2024-07-04 01:24:14 +0000
committerkdam0 <me@kumardamani.net>2024-07-04 01:24:14 +0000
commitca7ef26e9985f3e66a0cb3a268c98d9205a4c2db (patch)
treead9d961ce87172c43264160dc4f680861f437562 /flake.nix
inital commit
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..81e2792
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,43 @@
+{
+ 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
+ '';
+};
+
+ };
+ };
+}