Good day,
I wanted to rice on Nix (nixos-graphical-25.11.7198.71caefce12ba-x86_64-linux.iso), and to try it out i chose to run it on a VM using VirtualBox Version 7.2.6 r172322 (Qt6.8.0 on windows 10). Currently i cannot test on a live computer.
I only enabled ly (disabled sddm and xserver), sway and vscode. When swapping to sway and trying to execute vscode, it crashes silently. (I was trying with nautilus too, which also didn’t open, but decided to just test with one program)
I ran it with –verbose, and pasted the contents below. Noticed it was complaining about some libraries, so i added them. It still crashes.
I expected it to work out of the box. What could be happening?
vm propieties
Name: Nix
Encryption: disabled
Groups: /
Platform Architecture: x86
Guest OS: Other Linux (64-bit)
UUID: 1d6f7cb9-7ca1-4e2a-b0ec-8ab02fedc600
Config file: D:_VMs\Nix\Nix.vbox
Snapshot folder: D:_VMs\Nix\Snapshots
Log folder: D:_VMs\Nix\Logs
Hardware UUID: 1d6f7cb9-7ca1-4e2a-b0ec-8ab02fedc600
Memory size: 11242MB
Page Fusion: disabled
VRAM size: 256MB
CPU exec cap: 100%
CPUProfile: host
Chipset: piix3
Firmware: BIOS
Number of CPUs: 6
HPET: disabled
PAE: enabled
Long Mode: enabled
Triple Fault Reset: disabled
APIC: enabled
X2APIC: enabled
Nested VT-x/AMD-V: disabled
CPUID overrides: None
Hardware Virtualization: enabled
Nested Paging: enabled
Large Pages: enabled
VT-x VPID: enabled
VT-x Unrestricted Exec.: enabled
AMD-V Virt. Vmsave/Vmload: enabled
CPUID Portability Level: 0
Boot menu mode: message and menu
Boot Device 1: Floppy
Boot Device 2: DVD
Boot Device 3: HardDisk
Boot Device 4: Not Assigned
ACPI: enabled
IOAPIC: enabled
BIOS APIC mode: APIC
Time offset: 0ms
BIOS NVRAM File: D:_VMs\Nix\Nix.nvram
RTC: UTC
IOMMU: None
Paravirt. Provider: Default
Effective Paravirt. Prov.: KVM
State: running (since 2026-03-20T20:13:05.337000000)
Graphics Controller: VMSVGA
Monitor count: 1
3D Acceleration: enabled
Teleporter Enabled: disabled
Teleporter Port: 0
Teleporter Address:
Teleporter Password:
Tracing Enabled: disabled
Allow Tracing to Access VM: disabled
Tracing Configuration:
Autostart Enabled: disabled
Autostart Delay: 0
Default Frontend:
VM process priority: default
Storage Controllers:
#0: ‘IDE’, Type: PIIX4, Instance: 0, Ports: 2 (max 2), Bootable
Port 0, Unit 0: Empty
#1: ‘SATA’, Type: IntelAhci, Instance: 0, Ports: 1 (max 30), Bootable
Port 0, Unit 0: UUID: f081e4e0-03f8-4cfd-9813-fa6c6b7ea1c3
Location: “D:_VMs\Nix\Nix.vdi”
NIC 1: MAC: 080027933128, Attachment: NAT, Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 1 Settings:
MTU: 0, Socket (send: 64, receive: 64), TCP Window (send:64, receive: 64),
LocalhostReachable: 1, ForwardBroadcast: 0, EnableTFTP: 0
NIC 2: disabled
NIC 3: disabled
NIC 4: disabled
NIC 5: disabled
NIC 6: disabled
NIC 7: disabled
NIC 8: disabled
Pointing Device: PS/2 Mouse
Keyboard Device: PS/2 Keyboard
UART 1: disabled
UART 2: disabled
UART 3: disabled
UART 4: disabled
LPT 1: disabled
LPT 2: disabled
Audio: enabled (Driver: Default, Controller: AC97, Codec: AD1980)
Audio playback: enabled
Audio capture: disabled
Clipboard Mode: Bidirectional
Clipboard file transfers: disabled
Drag and drop Mode: disabled
Session name: GUI/Qt
Video mode: 1280x800x32 at 0,0 enabled
VRDE: disabled
OHCI USB: enabled
EHCI USB: enabled
xHCI USB: disabled
USB Device Filters:
Available remote USB devices:
Currently attached USB devices:
Bandwidth groups:
Shared folders:
Name: ‘_SHARED’, Host path: ‘D:_VMs_SHARED’ (global mapping), writable, auto-mount, mount-point: ‘/mnt/share’
VRDE Connection: not active
Clients so far: 0
Recording status: stopped
Recording enabled: no
Recording screens: 1
Screen 0:
Enabled: yes
ID: 0
Record video: yes
Record audio: no
Destination: File
File: D:_VMs\Nix\Nix-screen0.webm
Options: ac_profile=med
Video dimensions: 1024x768
Video rate: 512kbps
Video FPS: 25fps
- Guest:
Configured memory balloon: 0MB
OS type: Linux26_64
Additions run level: 2
Additions version: 7.2.4_NixOS r170995
Guest Facilities:
Facility “VirtualBox Base Driver”: active/running (last update: 2026/03/20 20:55:54 UTC)
Facility “VirtualBox System Service”: active/running (last update: 2026/03/20 20:56:03 UTC)
Facility “Seamless Mode”: not active (last update: 2026/03/20 20:56:03 UTC)
Facility “Graphics Mode”: active/running (last update: 2026/03/20 20:56:03 UTC)
“code –verbose” command output
[0321/013354.497873:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:153] open /home/e/.config/Code/Crashpad/pending/8c925e33-40d5-4466-a266-83b4478f0001.lock: File exists (17)
[0321/013354.498001:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:153] open /home/e/.config/Code/Crashpad/pending/1c6ff50d-70e9-46c4-9d0d-1398dbabf430.lock: File exists (17)
[0321/013354.498022:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:153] open /home/e/.config/Code/Crashpad/pending/9c7d5f4f-6d54-4a03-a4aa-b1066e2b605f.lock: File exists (17)
[0321/013354.498038:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:153] open /home/e/.config/Code/Crashpad/pending/cf18429a-d8b4-4069-a0fa-727675d0c0e2.lock: File exists (17)
[0321/013354.498055:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:153] open /home/e/.config/Code/Crashpad/pending/d2b7ca4c-c11c-45f0-9889-b23c0dd4540d.lock: File exists (17)
[0321/013354.498072:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:153] open /home/e/.config/Code/Crashpad/pending/6345385d-50d9-4d15-a044-fa8fcfb35f22.lock: File exists (17)
[0321/013354.498087:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:153] open /home/e/.config/Code/Crashpad/pending/4b203edf-021e-46cc-a14c-e6733a0d372c.lock: File exists (17)
[0321/013354.498104:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:153] open /home/e/.config/Code/Crashpad/pending/04381b44-cff7-4a3b-b9ea-3a580222c9c7.lock: File exists (17)
[0321/013354.498120:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:153] open /home/e/.config/Code/Crashpad/pending/a9e1ed02-1f5e-4549-ab78-43162f42be67.lock: File exists (17)
[0321/013354.498135:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:153] open /home/e/.config/Code/Crashpad/pending/322d1255-b0d2-4cf7-a205-4fc3fe1099ec.lock: File exists (17)
[0321/013354.498151:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:153] open /home/e/.config/Code/Crashpad/pending/ed5d40ad-fd8e-41c1-8047-afa26d61f907.lock: File exists (17)
[0321/013354.498172:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:153] open /home/e/.config/Code/Crashpad/pending/d815adce-0bbd-46d9-80f8-0d1e630ddff8.lock: File exists (17)
[0321/013354.498189:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:153] open /home/e/.config/Code/Crashpad/pending/56241457-4b60-4222-a950-ebdd3eb95785.lock: File exists (17)
[0321/013354.498202:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:153] open /home/e/.config/Code/Crashpad/pending/28edcd3d-ee29-4e21-8f48-17288dfdc7c4.lock: File exists (17)
[0321/013354.498217:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:153] open /home/e/.config/Code/Crashpad/pending/92c8afa1-d7aa-4dd1-8466-cbecb62bc62c.lock: File exists (17)
[0321/013354.498231:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:153] open /home/e/.config/Code/Crashpad/pending/de153644-7aa3-458e-a0a5-386a2d7c42fd.lock: File exists (17)
[0321/013354.498246:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:153] open /home/e/.config/Code/Crashpad/pending/37055376-29f4-43c5-8b9a-fd7cebab54c9.lock: File exists (17)
e[90m[main 2026-03-21T00:33:54.998Z]e[0m PolicyConfiguration#initialize
e[90m[main 2026-03-21T00:33:55.008Z]e[0m PolicyConfiguration#updatePolicyDefinitions [
‘update.mode’,
‘update.channel’,
‘update.showReleaseNotes’,
‘http.useLocalProxyConfiguration’,
‘http.electronFetch’,
‘http.proxy’,
‘http.proxyStrictSSL’,
‘http.proxyKerberosServicePrincipal’,
‘http.noProxy’,
‘http.proxyAuthorization’,
‘http.proxySupport’,
‘http.systemCertificates’,
‘http.systemCertificatesNode’,
‘http.experimental.systemCertificatesV2’,
‘http.fetchAdditionalSupport’,
‘http.experimental.networkInterfaceCheckInterval’,
‘telemetry.telemetryLevel’,
‘telemetry.feedback.enabled’,
‘telemetry.enableTelemetry’,
‘extensions.allowed’
]
e[90m[main 2026-03-21T00:33:55.019Z]e[0m [File Watcher (node.js)] Request to start watching: /etc/vscode/policy.json (excludes: , includes: , filter: , correlationId: ),/home/e/.config/Code/User (excludes: , includes: , filter: , correlationId: ),/home/e/.config/Code/User/settings.json (excludes: , includes: , filter: , correlationId: )
e[90m[main 2026-03-21T00:33:55.022Z]e[0m PolicyConfiguration#update [
‘update.mode’,
‘telemetry.telemetryLevel’,
‘telemetry.feedback.enabled’,
‘extensions.allowed’
]
e[90m[main 2026-03-21T00:33:55.023Z]e[0m PolicyConfiguration#updatePolicyDefinitions [ ‘update.enableWindowsBackgroundUpdates’ ]
e[90m[main 2026-03-21T00:33:55.023Z]e[0m PolicyConfiguration#update
e[90m[main 2026-03-21T00:33:55.023Z]e[0m [File Watcher (node.js)] ignoring a path for watching who’s stat info failed to resolve: /etc/vscode/policy.json (error: Error: ENOENT: no such file or directory, stat ‘/etc/vscode/policy.json’)
e[90m[main 2026-03-21T00:33:55.023Z]e[0m [File Watcher (node.js)] starting fs.watchFile() on /etc/vscode/policy.json (correlationId: undefined)
e[90m[main 2026-03-21T00:33:55.034Z]e[0m Starting VS Code
e[90m[main 2026-03-21T00:33:55.034Z]e[0m from: /nix/store/29yy6qqz7lchbsix481686rsqdd191c6-vscode-1.106.2/lib/vscode/resources/app
e[90m[main 2026-03-21T00:33:55.034Z]e[0m args: {
_: ,
diff: false,
merge: false,
add: false,
remove: false,
goto: false,
‘new-window’: false,
‘reuse-window’: false,
wait: false,
help: false,
‘extensions-dir’: ‘/nix/store/zdaqa772kh03i330pa2wms3cq3ndimni-vscode-extensions/share/vscode/extensions’,
‘list-extensions’: false,
‘show-versions’: false,
‘pre-release’: false,
‘update-extensions’: false,
version: false,
verbose: true,
status: false,
‘prof-startup’: false,
‘no-cached-data’: false,
‘prof-v8-extensions’: false,
‘disable-extensions’: false,
‘disable-lcd-text’: false,
‘disable-gpu’: false,
‘disable-chromium-sandbox’: false,
sandbox: false,
telemetry: false,
debugRenderer: false,
‘enable-smoke-test-driver’: false,
logExtensionHostCommunication: false,
‘skip-release-notes’: false,
‘skip-welcome’: false,
‘disable-telemetry’: false,
‘disable-updates’: false,
transient: false,
‘use-inmemory-secretstorage’: false,
‘disable-workspace-trust’: false,
‘disable-crash-reporter’: false,
‘crash-reporter-id’: ‘b433a3f4-80f4-4d96-8a31-53feaf0bfff2’,
‘skip-add-to-recently-opened’: false,
‘open-url’: false,
‘file-write’: false,
‘file-chmod’: false,
force: false,
‘do-not-sync’: false,
‘do-not-include-pack-dependencies’: false,
trace: false,
‘trace-memory-infra’: false,
‘preserve-env’: false,
‘force-user-env’: false,
‘force-disable-user-env’: false,
‘open-devtools’: false,
‘disable-gpu-sandbox’: false,
‘__enable-file-policy’: false,
‘enable-coi’: false,
‘enable-rdp-display-tracking’: false,
‘disable-layout-restore’: false,
‘disable-experiments’: false,
‘no-proxy-server’: false,
‘no-sandbox’: false,
nolazy: false,
‘force-renderer-accessibility’: false,
‘ignore-certificate-errors’: false,
‘allow-insecure-localhost’: false,
‘disable-dev-shm-usage’: false,
‘profile-temp’: false,
logsPath: ‘/home/e/.config/Code/logs/20260321T013354’
}
e[90m[main 2026-03-21T00:33:55.035Z]e[0m Resolving machine identifier…
e[90m[main 2026-03-21T00:33:55.035Z]e[0m Resolving SQM identifier…
e[90m[main 2026-03-21T00:33:55.035Z]e[0m Resolving devDevice identifier…
e[90m[main 2026-03-21T00:33:55.036Z]e[0m Resolved machine identifier: 0ae42fae30dade2ac258ec1108ba9dc52cfde0cc0240e1069698f8823441c219
e[90m[main 2026-03-21T00:33:55.036Z]e[0m Resolved SQM identifier:
e[90m[main 2026-03-21T00:33:55.036Z]e[0m Resolved devDevice identifier: 351a75ea-4350-4da5-9214-5aebe795088d
e[90m[main 2026-03-21T00:33:55.036Z]e[0m Main->SharedProcess#connect
e[90m[main 2026-03-21T00:33:55.039Z]e[0m PolicyConfiguration#updatePolicyDefinitions [
‘terminal.integrated.automationProfile.linux’,
‘terminal.integrated.automationProfile.osx’,
‘terminal.integrated.automationProfile.windows’,
‘terminal.integrated.profiles.windows’,
‘terminal.integrated.profiles.osx’,
‘terminal.integrated.profiles.linux’,
‘terminal.integrated.useWslProfiles’,
‘terminal.integrated.inheritEnv’,
‘terminal.integrated.persistentSessionScrollback’,
‘terminal.integrated.showLinkHover’,
‘terminal.integrated.ignoreProcessNames’
]
e[90m[main 2026-03-21T00:33:55.040Z]e[0m PolicyConfiguration#updatePolicyDefinitions [
‘terminal.integrated.defaultProfile.linux’,
‘terminal.integrated.defaultProfile.osx’,
‘terminal.integrated.defaultProfile.windows’
]
e[90m[main 2026-03-21T00:33:55.042Z]e[0m PolicyConfiguration#update
e[90m[main 2026-03-21T00:33:55.043Z]e[0m PolicyConfiguration#update
e[90m[main 2026-03-21T00:33:55.048Z]e[0m StorageMainService: creating application storage
e[90m[main 2026-03-21T00:33:55.054Z]e[0m ElectronURLListener: waiting for window to be ready to handle URLs…
e[90m[main 2026-03-21T00:33:55.054Z]e[0m lifecycle (main): phase changed (value: 2)
e[90m[main 2026-03-21T00:33:55.055Z]e[0m windowsManager#open
e[90m[main 2026-03-21T00:33:55.055Z]e[0m windowsManager#open pathsToOpen [
{
backupPath: ‘/home/e/.config/Code/Backups/1774025964771’,
remoteAuthority: undefined
}
]
e[90m[main 2026-03-21T00:33:55.056Z]e[0m windowsManager#doOpenEmpty {
restore: true,
remoteAuthority: undefined,
filesToOpen: undefined,
forceNewWindow: true
}
e[90m[main 2026-03-21T00:33:55.058Z]e[0m IPC Object URL: Registered new channel vscode:ab5c45f6-30ad-490f-be22-227f30c31ae8.
e[90m[main 2026-03-21T00:33:55.059Z]e[0m window#validateWindowState: validating window state on 1 display(s) { mode: 0, x: 0, y: 0, width: 1280, height: 756 }
e[90m[main 2026-03-21T00:33:55.059Z]e[0m window#validateWindowState: single monitor working area { x: 0, y: 0, width: 1280, height: 800 }
e[90m[main 2026-03-21T00:33:55.059Z]e[0m window#ctor: using window state { mode: 0, x: 0, y: 0, width: 1280, height: 756 }
e[90m[main 2026-03-21T00:33:55.216Z]e[0m window#load: attempt to load window (id: 1)
XIO: fatal IO error 2 (No such file or directory) on X server “:1”
after 21 requests (12 known processed) with 0 events remaining.
e[90m[main 2026-03-21T00:33:55.239Z]e[0m windowsManager#open used window count 1 (workspacesToOpen: 0, foldersToOpen: 0, emptyToRestore: 1, maybeOpenEmptyWindow: false)
e[90m[main 2026-03-21T00:33:55.240Z]e[0m lifecycle (main): phase changed (value: 3)
e[90m[main 2026-03-21T00:33:55.240Z]e[0m resolveShellEnv(): skipped (VSCODE_CLI is set)
e[90m[main 2026-03-21T00:33:55.241Z]e[0m update#setState idle
[2094:0321/013355.291795:FATAL:electron/shell/browser/electron_browser_main_parts.cc:499] Failed to shutdown.
[0321/013355.305869:ERROR:third_party/crashpad/crashpad/snapshot/elf/elf_dynamic_array_reader.h:64] tag not found
[0321/013355.308337:ERROR:third_party/crashpad/crashpad/snapshot/elf/elf_dynamic_array_reader.h:64] tag not found
[0321/013355.308585:ERROR:third_party/crashpad/crashpad/util/process/process_memory_range.cc:75] read out of range
[0321/013355.315630:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:145] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq: No such file or directory (2)
[0321/013355.315671:ERROR:third_party/crashpad/crashpad/util/file/file_io_posix.cc:145] open /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq: No such file or directory (2)
[0321/013355.321310:ERROR:third_party/crashpad/crashpad/util/file/directory_reader_posix.cc:43] opendir /home/e/.config/Code/Crashpad/attachments/b289733b-3cad-466f-98a3-9caeaf44b802: No such file or directory (2)
[0321/013355.332406:ERROR:third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc:118] dlopen:libcurl.so: cannot open shared object file: No such file or directory
[0321/013355.332436:ERROR:third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc:118] dlopen:libcurl-gnutls.so.4: cannot open shared object file: No such file or directory
[0321/013355.332441:ERROR:third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc:118] dlopen:libcurl-nss.so.4: cannot open shared object file: No such file or directory
[0321/013355.332444:ERROR:third_party/crashpad/crashpad/util/net/http_transport_libcurl.cc:118] dlopen:libcurl.so.4: cannot open shared object file: No such file or directory
configuration.nix
Mostly default configuration, i just disabled default displayManager and disabled xserver.
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./test.nix
];
# Bootloader.
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sda";
boot.loader.grub.useOSProber = true;
networking.hostName = "e"; # Define your hostname.
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Enable networking
networking.networkmanager.enable = true;
# Set your time zone.
time.timeZone = "Europe/Madrid";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "es_ES.UTF-8";
LC_IDENTIFICATION = "es_ES.UTF-8";
LC_MEASUREMENT = "es_ES.UTF-8";
LC_MONETARY = "es_ES.UTF-8";
LC_NAME = "es_ES.UTF-8";
LC_NUMERIC = "es_ES.UTF-8";
LC_PAPER = "es_ES.UTF-8";
LC_TELEPHONE = "es_ES.UTF-8";
LC_TIME = "es_ES.UTF-8";
};
# Enable the X11 windowing system.
# You can disable this if you're only using the Wayland session.
#services.xserver.enable = true;
# Enable the KDE Plasma Desktop Environment.
#services.displayManager.sddm.enable = true;
services.desktopManager.plasma6.enable = true;
# Configure keymap in X11
services.xserver.xkb = {
layout = "es";
variant = "";
};
# Configure console keymap
console.keyMap = "es";
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable sound with pipewire.
services.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
#jack.enable = true;
# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
#media-session.enable = true;
};
# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;
# Define a user account. Don't forget to set a password with ‘passwd’.
users.users.e = {
isNormalUser = true;
description = "e";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
kdePackages.kate
# thunderbird
];
};
# Install firefox.
programs.firefox.enable = true;
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
# wget
];
system.stateVersion = "25.11"; # Did you read the comment?
}
test.nix
{ config, pkgs, ... }:
{
services.displayManager.ly.enable = true;
programs = {
sway = {
enable = true;
};
vscode.enable = true;
};
}