daedalusvm rosetta
This commit is contained in:
parent
b32498e5d0
commit
8af7ea5958
3 changed files with 20 additions and 4 deletions
|
|
@ -17,11 +17,12 @@
|
||||||
publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUorQkJYdWZYQUpoeVVIVmZocWxrOFk0ekVLSmJLWGdKUXZzZEU0ODJscFYgcm9vdEBpc28K";
|
publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUorQkJYdWZYQUpoeVVIVmZocWxrOFk0ekVLSmJLWGdKUXZzZEU0ODJscFYgcm9vdEBpc28K";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
systems = [ "aarch64-linux" ];
|
systems = [ "aarch64-linux" "x86_64-linux" ];
|
||||||
|
speedFactor = 2;
|
||||||
supportedFeatures = [ "kvm" "big-parallel" ];
|
supportedFeatures = [ "kvm" "big-parallel" ];
|
||||||
sshUser = "ragon";
|
sshUser = "ragon";
|
||||||
maxJobs = 8;
|
maxJobs = 8;
|
||||||
hostName = "192.168.64.5";
|
hostName = "192.168.64.7";
|
||||||
sshKey = "/Users/ragon/.ssh/id_ed25519";
|
sshKey = "/Users/ragon/.ssh/id_ed25519";
|
||||||
publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUJMMm94ZEtha01Ka05iTExZK2xnNFkzd25jWnJwVE1sVHRBUWdsazVkVVEgcm9vdEBkYWVkYWx1c3ZtCg==";
|
publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUJMMm94ZEtha01Ka05iTExZK2xnNFkzd25jWnJwVE1sVHRBUWdsazVkVVEgcm9vdEBkYWVkYWx1c3ZtCg==";
|
||||||
}];
|
}];
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,17 @@ in
|
||||||
boot.supportedFilesystems = [ "nfs" "nfs4" ];
|
boot.supportedFilesystems = [ "nfs" "nfs4" ];
|
||||||
environment.systemPackages = [ pkgs.nfs-utils pkgs.virt-manager pkgs.firefox ];
|
environment.systemPackages = [ pkgs.nfs-utils pkgs.virt-manager pkgs.firefox ];
|
||||||
|
|
||||||
|
nix.settings.extra-platforms = [ "x86_64-linux" ];
|
||||||
|
nix.settings.extra-sandbox-paths = [ "/tmp/rosetta" "/run/binfmt" ];
|
||||||
|
boot.binfmt.registrations."rosetta" = {
|
||||||
|
interpreter = "/tmp/rosetta/rosetta";
|
||||||
|
fixBinary = true;
|
||||||
|
wrapInterpreterInShell = false;
|
||||||
|
matchCredentials = true;
|
||||||
|
magicOrExtension = ''\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x3e\x00'';
|
||||||
|
mask = ''\xff\xff\xff\xff\xff\xfe\xfe\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff'';
|
||||||
|
};
|
||||||
|
|
||||||
services.qemuGuest.enable = true;
|
services.qemuGuest.enable = true;
|
||||||
|
|
||||||
services.xserver.desktopManager.gnome.enable = true;
|
services.xserver.desktopManager.gnome.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -5,14 +5,18 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ "${modulesPath}/profiles/qemu-guest.nix" ];
|
imports = [ "${modulesPath}/profiles/qemu-guest.nix" ];
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "virtio_pci" "usbhid" "usb_storage" "sr_mod" ];
|
boot.initrd.availableKernelModules = [ "xhci_pci" "virtio_pci" "usbhid" "usb_storage" "sr_mod" "virtiofs" ];
|
||||||
|
|
||||||
networking.interfaces.enp0s5.useDHCP = true;
|
networking.interfaces.enp0s1.useDHCP = true;
|
||||||
swapDevices = [{ device = "/dev/disk/by-label/NIXOS_SWAP"; }];
|
swapDevices = [{ device = "/dev/disk/by-label/NIXOS_SWAP"; }];
|
||||||
fileSystems."/boot" = {
|
fileSystems."/boot" = {
|
||||||
device = "/dev/disk/by-label/NIXOS_BOOT";
|
device = "/dev/disk/by-label/NIXOS_BOOT";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
fileSystems."/tmp/rosetta" = {
|
||||||
|
device = "rosetta";
|
||||||
|
fsType = "virtiofs";
|
||||||
|
};
|
||||||
|
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "/dev/disk/by-label/NIXOS_ROOT";
|
device = "/dev/disk/by-label/NIXOS_ROOT";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue