1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-15 19:23:01 +03:00
mobile-nixos/modules/_nixos-disintegration/initrd.nix
Samuel Dionne-Riel 1580f35dfb nixos-integration: Use initrd.enable = false
That new option allows us to remove the crutch of pretending to be a
container.

Pretending to be a container had a couple drawbacks, they are now
irrelevant.

The dummy outputs could be re-worked to instead use out own stage-1
infra, but I prefer using dummies for now, for better insulation.
2020-04-09 22:27:15 -04:00

23 lines
579 B
Nix

{ pkgs, lib, config, ... }:
let
dummy = pkgs.runCommandNoCC "dummy" {} "touch $out";
in
{
disabledModules = [
<nixpkgs/nixos/modules/tasks/encrypted-devices.nix>
<nixpkgs/nixos/modules/tasks/filesystems/zfs.nix>
];
config = {
# This isn't even used in our initrd...
boot.supportedFilesystems = lib.mkOverride 10 [ ];
boot.initrd.supportedFilesystems = lib.mkOverride 10 [];
# And disable the initrd outright!
boot.initrd.enable = false;
system.build.initialRamdisk = dummy;
system.build.initialRamdiskSecretAppender = dummy;
};
}