Hello community, I’m pretty new to nix and have been using nix for half a year now and after updating to newest 24.11 my system refuses to build with these errors and after trying a few fixes online nothing helped. Thanks!
bzip2: Compressed file ends unexpectedly;
perhaps it is corrupted? *Possible* reason follows.
bzip2: Inappropriate ioctl for device
Input file = (stdin), output file = (stdout)
It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.
You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
do not know how to unpack source archive /nix/store/2vmyh8pqz22z0fmpdsb83nc0dzpiqsbg-VirtualBox-7.0.22.tar.bz2
error: builder for '/nix/store/cdkp91gi61ff5nj14db6nqcnqw7pq0bv-virtualbox-7.0.22.drv' failed with exit code 1
error: 1 dependencies of derivation '/nix/store/cqdmn7ip9knhcqkav0pbw2hv5pg48pci-ensure-all-wrappers-paths-exist.drv' failed to build
error: 1 dependencies of derivation '/nix/store/b7x6n49bmqp747nn1pnr60ssqw96fpzd-extra-udev-rules.drv' failed to build
error: 1 dependencies of derivation '/nix/store/i7prqyyh12xi7zyccdww9qg23d75l7g4-security-wrapper-VBoxHeadless-x86_64-unknown-linux-musl.drv' failed to build
error: 1 dependencies of derivation '/nix/store/pqnm0php1adydxgdi2d2fa2hygg3k8m5-security-wrapper-VBoxNetAdpCtl-x86_64-unknown-linux-musl.drv' failed to build
error: 1 dependencies of derivation '/nix/store/xyrhbzy1hljrqjjsf72cxsfcfkaaqfwi-security-wrapper-VBoxNetDHCP-x86_64-unknown-linux-musl.drv' failed to build
error: 1 dependencies of derivation '/nix/store/7gjvyh9r0lfihsizi25zq60pbk3krpi2-security-wrapper-VBoxNetNAT-x86_64-unknown-linux-musl.drv' failed to build
error: 1 dependencies of derivation '/nix/store/b3g8dv6fc06d1yhxa42d38nb9mrcj5yq-security-wrapper-VBoxSDL-x86_64-unknown-linux-musl.drv' failed to build
error: 1 dependencies of derivation '/nix/store/5nczygfgg0pw7m3ccn4lfsij2gsygnxb-security-wrapper-VBoxVolInfo-x86_64-unknown-linux-musl.drv' failed to build
error: 1 dependencies of derivation '/nix/store/bphkn321pripd7vjvm1aabc7amcviw4d-security-wrapper-VirtualBoxVM-x86_64-unknown-linux-musl.drv' failed to build
error: 1 dependencies of derivation '/nix/store/9c2liv3314pa4v7hap0cimx33xvbjfxp-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/5ky8qp1s1gfvb7kkxys5s11dz3s5l6lk-unit-vboxnet0.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/4x07rb7w8x438vkv41zgn275mgyqsi6m-virtualbox-modules-7.0.22-6.6.64.drv' failed to build
error: 1 dependencies of derivation '/nix/store/635r6n2z54fv88329jn23hj63x2k3r15-nixos-system-nixos-24.11.711150.314e12ba369c.drv' failed to build
my configuration.nix
# 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
#./nix-security-tool-box.nix
# ./bluetooth.nix
# ./dns.nix
# ./exploits.nix
# ./forensics.nix
# ./fuzzers.nix
# ./host.nix
# ./information-gathering.nix
# ./malware.nix
# ./misc.nix
# ./mobile.nix
# ./network.nix
# ./password.nix
# ./port-scanners.nix
# ./proxies.nix
# ./services.nix
# ./traffic.nix
# ./tunneling.nix
# ./voip.nix
# ./web.nix
# ./windows.nix
# ./wireless.nix
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "nixos"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# 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/Prague";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "cs_CZ.UTF-8";
LC_IDENTIFICATION = "cs_CZ.UTF-8";
LC_MEASUREMENT = "cs_CZ.UTF-8";
LC_MONETARY = "cs_CZ.UTF-8";
LC_NAME = "cs_CZ.UTF-8";
LC_NUMERIC = "cs_CZ.UTF-8";
LC_PAPER = "cs_CZ.UTF-8";
LC_TELEPHONE = "cs_CZ.UTF-8";
LC_TIME = "cs_CZ.UTF-8";
};
# Enable the X11 windowing system.
services.xserver.enable = true;
# Enable the GNOME Desktop Environment.
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;
# Configure keymap in X11
services.xserver = {
layout = "sk";
xkbVariant = "qwerty";
};
# Configure console keymap
console.keyMap = "sk-qwerty";
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable sound with pipewire.
hardware.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.perchant = {
isNormalUser = true;
description = "Perchant";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
# thunderbird
];
};
# Install firefox.
programs.firefox.enable = true;
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
#auto upgrade
system.autoUpgrade.enable = true;
system.autoUpgrade.allowReboot = true;
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
pkgs.vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
wget
protonup
pkgs.spotify
pkgs.discord
pkgs.steam
pkgs.brave
pkgs.mullvad-vpn
pkgs.kitty
pkgs.slack
pkgs.vscode
pkgs.obs-studio
pkgs.insomnia
pkgs.libreoffice-qt-fresh
pkgs.git
pkgs.zip
pkgs.unzip
pkgs.python3
pkgs.gnutar
pkgs.gnome.gnome-tweaks
putty
pkgs.fastfetch
pkgs.zsh
lutris
bottles
wineWowPackages.stable
termius
pidgin
piper
libratbag
asdf-vm
xpipe
terminator
clang
gnome.gnome-software
nodejs_22
code-cursor
docker
pkgs.jetbrains.datagrip
android-studio
php
pkgs.php83Packages.composer
p7zip
fprintd
ticktick
gnomeExtensions.docker
remnote
davinci-resolve
zoom-us
neovim
nodePackages.pnpm
simplex-chat-desktop
firefox
imlib2
nerdfonts
xorg.xsetroot
macchanger
(pkgs.burpsuite.override { proEdition = true; })
];
#Burpsuite Profesional Edition
#mullvad VPN
services.mullvad-vpn.enable = true;
services.mullvad-vpn.package = pkgs.mullvad-vpn;
programs.zsh.enable = true;
users.defaultUserShell = pkgs.zsh;
#fingerprint sensor
services.fprintd.enable = true;
services.fprintd.tod.enable = true;
services.fprintd.tod.driver = pkgs.libfprint-2-tod1-vfs0090;
programs.steam = {
enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source
};
#virtualbox
virtualisation.virtualbox.host.enable = true;
virtualisation.virtualbox.guest.enable = true;
users.extraGroups.vboxusers.members = [ "perchant" ];
virtualisation.virtualbox.host.enableExtensionPack = true;
virtualisation.virtualbox.guest.draganddrop = true;
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# };
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It‘s perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.05"; # Did you read the comment?
}