feat(dotfiles): add session env registry
This commit was merged in pull request #155.
This commit is contained in:
@@ -13,9 +13,8 @@ in
|
||||
lib.mkEnableOption "Python tools for the primary user's shell environment";
|
||||
|
||||
config = lib.mkIf config.modules.shell.python.enable {
|
||||
home-manager.users.${user}.home = {
|
||||
sessionVariables.PYTHON_TOOLCHAIN_ROOT = "${pkgs.python3}";
|
||||
packages = [ pkgs.python3 ];
|
||||
};
|
||||
registry.env.${config.networking.hostName}.PYTHON_TOOLCHAIN_ROOT = "${pkgs.python3}";
|
||||
|
||||
home-manager.users.${user}.home.packages = [ pkgs.python3 ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -23,9 +23,9 @@ in
|
||||
lib.mkEnableOption "Rust tools for the primary user's shell environment";
|
||||
|
||||
config = lib.mkIf config.modules.shell.rust.enable {
|
||||
home-manager.users.${user} = {
|
||||
home.sessionVariables.RUST_TOOLCHAIN_ROOT = "${toolchain}";
|
||||
registry.env.${config.networking.hostName}.RUST_TOOLCHAIN_ROOT = "${toolchain}";
|
||||
|
||||
home-manager.users.${user} = {
|
||||
home.packages = [
|
||||
toolchain
|
||||
pkgs.rust-analyzer
|
||||
|
||||
Reference in New Issue
Block a user