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
Edward Amsden c507b39099 Make the package set a parameter instead of using <nixpkgs> everywhere.
Co-authored-by: Samuel Dionne-Riel <samuel@dionne-riel.com>
Co-authored-by: Edward Amsden <edward@blackriversoft.com>
2021-02-02 01:58:41 -05:00

22 lines
494 B
Nix

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