refactor(nixos): use Home Manager session variables

This commit was merged in pull request #127.
This commit is contained in:
2026-10-04 22:22:55 -04:00
parent 4a8e8920ea
commit a7db0b745c
4 changed files with 7 additions and 16 deletions

View File

@@ -14,8 +14,9 @@ in
lib.mkEnableOption "Python tools for the primary user's shell environment";
config = lib.mkIf cfg.enable {
registry.env-var.${config.networking.hostName}.PYTHON_TOOLCHAIN_ROOT = "${pkgs.python3}";
home-manager.users.${user}.home.packages = [ pkgs.python3 ];
home-manager.users.${user}.home = {
sessionVariables.PYTHON_TOOLCHAIN_ROOT = "${pkgs.python3}";
packages = [ pkgs.python3 ];
};
};
}