nixpkgs/nixos/modules/system
Val Packett 313fa9dc99 nixos/top-level: fix cutoffPackages without initialRamdisk
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.
2025-09-18 18:59:45 -03:00
..
activation nixos/top-level: fix cutoffPackages without initialRamdisk 2025-09-18 18:59:45 -03:00
boot nixos/systemd: add units for capsule support 2025-09-17 21:41:43 +02:00
etc treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
service Modular services: no pkgs (#435092) 2025-08-27 12:21:59 +02:00
build.nix treewide: format all inactive Nix files 2024-12-10 20:26:33 +01:00