mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-15 19:23:01 +03:00
1580f35dfb
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.
23 lines
579 B
Nix
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;
|
|
};
|
|
}
|