From 30093eb03dedcd452f789df027e57e5d99c99316 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Wed, 24 Jan 2024 16:09:05 +0100 Subject: [PATCH] add nix stuff --- .gitignore | 3 ++- flake.lock | 27 +++++++++++++++++++++++++++ flake.nix | 4 ++-- 3 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 flake.lock diff --git a/.gitignore b/.gitignore index 68bc17f..4bb3f01 100644 --- a/.gitignore +++ b/.gitignore @@ -122,6 +122,7 @@ celerybeat.pid # Environments .env .venv +.direnv env/ venv/ ENV/ @@ -157,4 +158,4 @@ cython_debug/ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. -#.idea/ +.idea/ diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..7b05b3b --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1705913940, + "narHash": "sha256-pjSl/1cwYczhSSudR6z0JA/8MclZx/ztzTahvOzwPPw=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "9ed792777ae7967fee22dae2e88fdb6cb965b193", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix index 1821849..4e07532 100644 --- a/flake.nix +++ b/flake.nix @@ -12,8 +12,8 @@ { devShells = forEachSupportedSystem ({ pkgs }: { default = pkgs.mkShell { - packages = with pkgs; [ python313 virtualenv libffi libsodium jetbrains.pycharm-community ] ++ - (with pkgs.python313Packages; [ pip virtualenv ]); + packages = with pkgs; [ python311 virtualenv libffi libsodium jetbrains.pycharm-community ] ++ + (with pkgs.python311Packages; [ pip virtualenv ]); }; }); };