mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-18 05:33:56 +01:00
In systems without initrd (e.g. containers) that also use system.replaceDependencies, we'd get:
error: attribute 'initialRamdisk' missing
at /nix/store/8vfhnwmmzqqzy97q9c5m4bzyaqqf63zy-source/nixos/modules/system/activation/top-level.nix:286:21:
285| cutoffPackages = mkOption {
286| default = [ config.system.build.initialRamdisk ];
| ^
Make that initialRamdisk reference conditional on the initrd being enabled.
|
||
|---|---|---|
| .. | ||
| lib | ||
| activatable-system.nix | ||
| activation-script.nix | ||
| bootspec.cue | ||
| bootspec.nix | ||
| no-clone.nix | ||
| pre-switch-check.nix | ||
| specialisation.nix | ||
| switchable-system.nix | ||
| test.nix | ||
| top-level.nix | ||