1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-15 11:03:37 +03:00
mobile-nixos/modules/_nixos-disintegration/initrd.nix

23 lines
579 B
Nix
Raw Normal View History

{ 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;
};
}