Add a workaround to make apparmor tools work
diff --git a/modules/python.nix b/modules/python.nix
index 665a542..1f0f064 100644
--- a/modules/python.nix
+++ b/modules/python.nix
@@ -1,8 +1,13 @@
{ pkgs, ... }: {
- home.home.packages = [
- (pkgs.python3.withPackages
- (pyPkgs: with pyPkgs; [
- rope
- ]))
- ];
+ home.home = {
+ packages = [
+ (pkgs.python3.withPackages
+ (pyPkgs: with pyPkgs; [
+ rope
+ ]))
+ ];
+ sessionVariables = {
+ PYTHONPATH = "${pkgs.apparmor-utils}/lib/python3.10/site-packages:${pkgs.libapparmor.python}/lib/python3.10/site-packages";
+ };
+ };
}