feat(dotfiles): add session env registry #155

Merged
alexion merged 1 commits from feat/session-env-registry into main 2026-10-11 16:33:14 -04:00
4 changed files with 10 additions and 6 deletions
Showing only changes of commit e74a08b853 - Show all commits

View File

@@ -53,6 +53,7 @@ in
home.username = config.user.name; home.username = config.user.name;
home.homeDirectory = "/home/${config.user.name}"; home.homeDirectory = "/home/${config.user.name}";
home.stateVersion = config.system.stateVersion; home.stateVersion = config.system.stateVersion;
home.sessionVariables = lib.attrByPath [ config.networking.hostName ] { } config.registry.env;
home.packages = with pkgs; [ home.packages = with pkgs; [
eza eza
unzip unzip

View File

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

View File

@@ -23,9 +23,9 @@ in
lib.mkEnableOption "Rust tools for the primary user's shell environment"; lib.mkEnableOption "Rust tools for the primary user's shell environment";
config = lib.mkIf config.modules.shell.rust.enable { config = lib.mkIf config.modules.shell.rust.enable {
home-manager.users.${user} = { registry.env.${config.networking.hostName}.RUST_TOOLCHAIN_ROOT = "${toolchain}";
home.sessionVariables.RUST_TOOLCHAIN_ROOT = "${toolchain}";
home-manager.users.${user} = {
home.packages = [ home.packages = [
toolchain toolchain
pkgs.rust-analyzer pkgs.rust-analyzer

View File

@@ -0,0 +1,4 @@
{ lib, ... }:
{
type = lib.types.str;
}