diff options
author | Linnnus <[email protected]> | 2025-02-21 18:03:30 +0100 |
---|---|---|
committer | Linnnus <[email protected]> | 2025-02-21 18:03:52 +0100 |
commit | 3d9cf579a3e4d40221e08c36048e1f0d1de15ed0 (patch) | |
tree | 4205852e76de53fcaf675ce68f6ffa0285c30f4a /hosts/muhammed/dev-vm/configuration/virtualization.nix | |
parent | 3900ce318bd6a656822f3cfebc5a2c1c39ef0bea (diff) |
muhammed: Remove dev-vm
Diffstat (limited to 'hosts/muhammed/dev-vm/configuration/virtualization.nix')
-rw-r--r-- | hosts/muhammed/dev-vm/configuration/virtualization.nix | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/hosts/muhammed/dev-vm/configuration/virtualization.nix b/hosts/muhammed/dev-vm/configuration/virtualization.nix deleted file mode 100644 index bf24b4b..0000000 --- a/hosts/muhammed/dev-vm/configuration/virtualization.nix +++ /dev/null @@ -1,46 +0,0 @@ -{ - hostPkgs, - hostPort, - modulesPath, - ... -}: { - imports = [ - "${modulesPath}/virtualisation/qemu-vm.nix" - ]; - - virtualisation.host = {pkgs = hostPkgs;}; - - # DNS fails for QEMU user networking (SLiRP) on macOS. - # - # This works around that by using a public DNS server other than the DNS - # server that QEMU provides (normally 10.0.2.3) - # - # See: https://github.com/utmapp/UTM/issues/2353 - networking.nameservers = ["8.8.8.8"]; - - # System is deployed by image. - system.disableInstallerTools = true; - - virtualisation.forwardPorts = [ - { - from = "host"; - guest.port = 22; - host.port = hostPort; - } - ]; - - # We will be connecting over SSH. - virtualisation.graphics = false; - - # When the Nix store is shared with the VM host via 9p (the default) and the - # VM host is a Darwin system with the store mounted on a case-insensitive - # APFS volume (also the default), the case-hack will be visible on the guest. - # - # With NixOS/nixpkgs#347636 this is fixed for store images, but not for the - # 9P protocol. So for now we will use that as a temporary fix. - # - # See: https://github.com/NixOS/nix/issues/9319 - # See: https://nix.dev/manual/nix/2.24/command-ref/conf-file.html#conf-use-case-hack - virtualisation.useNixStoreImage = true; - virtualisation.writableStore = true; # Only default for mounted store. -} |