-
-
Notifications
You must be signed in to change notification settings - Fork 290
Open
Description
Hello,
I've created a nixos configuration once with channel 25.05. Now I wanted to upgrade to 25.11 and encounter a... bug? Can someone please check it? I don't understand what I have to change for the 25.11 channel.
This is the error log:
warning: Git tree '/some/random/path/Test' is dirty
error: Cannot build '/nix/store/qrryds555khf97xq8fhi20pknymwd55d-kernel-modules-shrunk.drv'.
Reason: builder failed with exit code 1.
Output paths:
/nix/store/sl1xf8h4cawvqvfbnqw55yvyl3gs9xl6-kernel-modules-shrunk
Last 2 log lines:
> Required modules: 9p 9pnet_virtio virtiofs virtio_pci virtio_blk virtio_balloon virtio_rng
> Can not derive a closure of kernel modules because no modules were provided.
For full logs, run:
nix log /nix/store/qrryds555khf97xq8fhi20pknymwd55d-kernel-modules-shrunk.drv
error: Cannot build '/nix/store/apf81y167ia9fmzy4p68c0b6g395p6yg-vm-run-stage1.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/krdjwx1w5ykzna3frrjhqhd7w979hxsv-vm-run-stage1
error: Cannot build '/nix/store/ly9n4w1w4d6x2izj12lgna20wzpffl97-initrd.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/y7afziincgz2a9kmba3cl4n84va9f9p9-initrd
error: Cannot build '/nix/store/j1r3xyh45afk9z38r1arys5dr43as4jm-vm-run.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/jghmyzg9wf08m1mbkjcnraz4j2jsg7n9-vm-run
error: Cannot build '/nix/store/b6s1mjjrw69ck9lcw6lxrhx3i8hxqwy9-host-disko-images.drv'.
Reason: 1 dependency failed.
Output paths:
/nix/store/zh8im56jxka8fg1mkw4abpcw5dzpp8lr-host-disko-imagesThe used building command:
nix build './#nixosConfigurations.host.config.system.build.diskoImages' && qemu-img convert -f raw -O qcow2 result/main.raw ./host.qcow2When I build the following config with the 25.05 channel I am able to complete the building and can boot into my virtual maschine.
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
system.stateVersion = "25.11";
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
disko.url = "github:nix-community/disko/latest";
disko.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = {
self,
nixpkgs,
nixpkgs-unstable,
disko,
...
} @ inputs: let
createSystemModule = configuration:
nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./variables.nix
./host/default.nix
disko.nixosModules.disko
];
};
in {
nixosConfigurations = {
host = createSystemModule "host";
};
};
}{ pkgs, modulesPath, lib, config, ... }:
{
imports = [
./hardware-configuration.nix
];
networking = {
hostName = "host";
};
environment.systemPackages = with pkgs; [
git
];
services.openssh.enable = true;
users = {
};
# Select internationalisation properties.
i18n.defaultLocale = "${config.var.system_locale}";
i18n.extraLocaleSettings = {
LC_ADDRESS = "${config.var.system_locale}";
LC_IDENTIFICATION = "${config.var.system_locale}";
LC_MEASUREMENT = "${config.var.system_locale}";
LC_MONETARY = "${config.var.system_locale}";
LC_NAME = "${config.var.system_locale}";
LC_NUMERIC = "${config.var.system_locale}";
LC_PAPER = "${config.var.system_locale}";
LC_TELEPHONE = "${config.var.system_locale}";
LC_TIME = "${config.var.system_locale}";
};
# Configure console keymap
console.keyMap = "de";
hardware.enableRedistributableFirmware = true;
time.timeZone = "${config.var.system_timezone}";
system.stateVersion = "25.11";
}{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/profiles/qemu-guest.nix")
./disks.nix
];
boot = {
initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ];
initrd.kernelModules = [ ];
kernelModules = [ "kvm-intel" "iscsi_tcp" "dm_crypt" "rbd" ];
kernelPackages = pkgs.linuxKernel.packages.linux_6_12;
extraModulePackages = [ ];
loader.grub.efiSupport = lib.mkDefault true;
loader.grub.efiInstallAsRemovable = lib.mkDefault true;
};
swapDevices = [ ];
networking.useDHCP = lib.mkDefault true;
nix.settings.trusted-users = [ "admin"];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}{config, ...}:
{
disko.devices = {
disk = {
main = {
# When using disko-install, we will overwrite this value from the commandline
device = "/dev/vda";
type = "disk";
content = {
type = "gpt";
partitions = {
MBR = {
type = "EF02"; # for grub MBR
size = "1M";
priority = 1; # Needs to be first partition
};
ESP = {
type = "EF00";
size = "500M";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
imageSize = "${config.var.diskSize}G";
};
};
};
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels