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

22 lines
494 B
Nix
Raw Normal View History

{ pkgs, lib, config, ... }:
let
dummy = pkgs.runCommandNoCC "dummy" {} "touch $out";
in
{
disabledModules = [
"tasks/encrypted-devices.nix"
"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.initialRamdiskSecretAppender = dummy;
};
}