mirror of
https://github.com/abusoww/tuxmate.git
synced 2026-04-17 21:53:12 +02:00
fix: change 'nixos' to 'nix' in useLinuxInit.ts to match DistroId type
This commit is contained in:
@@ -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(' ')}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user