fix: change 'nixos' to 'nix' in useLinuxInit.ts to match DistroId type

This commit is contained in:
NIJAT
2025-12-27 20:22:10 +04:00
parent a0ddaabed3
commit 18f611e14e

View File

@@ -190,7 +190,7 @@ export function useLinuxInit(): UseLinuxInitReturn {
if (packageNames.length === 0) return '# No packages selected';
// Handle special cases for NixOS and Snap
if (selectedDistro === 'nixos') {
if (selectedDistro === 'nix') {
// NixOS needs nixpkgs. prefix for each package
return `${distro.installPrefix} ${packageNames.map(p => `nixpkgs.${p}`).join(' ')}`;
}