Skip to content

fix(nix): replace pkgs.system with hostPlatform.system#72

Merged
rszyma merged 1 commit intorszyma:mainfrom
DivitMittal:fix/nix-hostplatform-system
Jan 1, 2026
Merged

fix(nix): replace pkgs.system with hostPlatform.system#72
rszyma merged 1 commit intorszyma:mainfrom
DivitMittal:fix/nix-hostplatform-system

Conversation

@DivitMittal
Copy link
Contributor

Summary

  • Fixes Nix evaluation warning by replacing deprecated pkgs.system with hostPlatform.system
  • Aligns with Nix best practices and modern attribute naming

Details

Nix has deprecated pkgs.system in favor of stdenv.hostPlatform.system. This PR updates the home-manager module to use the correct hostPlatform.system attribute that's already available in the function parameters.

Change: Line 22 in nix/hmModule.nix

- package = mkPackageOption self.packages.${pkgs.system} "kanata-tray" { nullable = true; };
+ package = mkPackageOption self.packages.${hostPlatform.system} "kanata-tray" { nullable = true; };

This resolves the evaluation warning:

trace: evaluation warning: 'system' has been renamed to/replaced by 'stdenv.hostPlatform.system'

Replace deprecated pkgs.system with hostPlatform.system in hmModule.nix
to address Nix evaluation warning about renamed attribute.
@rszyma rszyma merged commit 3903d3d into rszyma:main Jan 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants