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

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