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 70a967a904 modules: Integrate with NixOS...
Otherwise, passing configuration to the NixOS modules system would
become harder, for "outside-in" builds, and would make it harder to
integrate into a nixos-rebuild type build.
2019-09-21 17:32:16 -04:00

21 lines
664 B
Nix

{lib, config, ...}:
# FIXME: instead of setting `boot.isContainer`, let's instead disable the whole
# stage-1 module and re-implement the options as needed.
# → Maybe we can even import it ourselves, to get to its `options` attribute?
{
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 [];
# Co-opting this setting to disable the upstream NixOS stage-1.
boot.isContainer = true;
};
}