From 76884f5bfa25b1e02f336ec055b7f4eda4b342f8 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Wed, 1 Mar 2023 01:16:35 -0500 Subject: [PATCH] tweak(shell): add Qtile to PYTHONPATH for LSP --- shell/devos.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/shell/devos.nix b/shell/devos.nix index 772107a..fc97e29 100644 --- a/shell/devos.nix +++ b/shell/devos.nix @@ -8,6 +8,9 @@ let docs = pkgWithCategory "docs"; devos = pkgWithCategory "devos"; + pythonEnv = pkgs.python310.withPackages (p: with p; [ + pkgs.qtile.passthru.unwrapped + ]); in { _file = toString ./.; @@ -30,6 +33,10 @@ in unset _PATH ''); + devshell.packages = [ + pythonEnv + ]; + commands = with pkgs; [ (devos nixUnstable) (devos agenix) @@ -51,4 +58,11 @@ in (devos cachix) ; + + env = [ + { + name = "PYTHONPATH"; + value = "${pythonEnv}/${pythonEnv.sitePackages}"; + } + ]; }