forked from tangled.org/core
this repo has no description

nix/vm: fix on non-Linux systems

Signed-off-by: Winter <winter@winter.cafe>

authored by winter.bsky.social and committed by Tangled 9e7cdea4 cf07090e

Changed files
+14 -1
+14 -1
flake.nix
··· 182 182 if pkgs.stdenv.hostPlatform.isAarch64 183 183 then "aarch64" 184 184 else "x86_64"; 185 + 186 + nixos-shell = pkgs.nixos-shell.overrideAttrs (old: { 187 + patches = 188 + (old.patches or []) 189 + ++ [ 190 + # https://github.com/Mic92/nixos-shell/pull/94 191 + (pkgs.fetchpatch { 192 + name = "fix-foreign-vm.patch"; 193 + url = "https://github.com/Mic92/nixos-shell/commit/113e4cc55ae236b5b0b1fbd8b321e9b67c77580e.patch"; 194 + hash = "sha256-eauetBK0wXAOcd9PYbExokNCiwz2QyFnZ4FnwGi9VCo="; 195 + }) 196 + ]; 197 + }); 185 198 in { 186 199 type = "app"; 187 200 program = toString (pkgs.writeShellScript "vm" '' 188 - ${pkgs.nixos-shell}/bin/nixos-shell --flake .#vm-${system} 201 + ${nixos-shell}/bin/nixos-shell --flake .#vm-${system} --guest-system ${system}-linux 189 202 ''); 190 203 }; 191 204 gomod2nix = {