mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
wip: let's see what breaks with systemd.enable
This commit is contained in:
parent
dd4d1663cc
commit
42e6be2cbb
1 changed files with 5 additions and 2 deletions
|
@ -86,7 +86,7 @@ let
|
||||||
tsp-config = tsp-generator.config testConfigBooted;
|
tsp-config = tsp-generator.config testConfigBooted;
|
||||||
num-disks = builtins.length (lib.attrNames testConfigBooted.disko.devices.disk);
|
num-disks = builtins.length (lib.attrNames testConfigBooted.disko.devices.disk);
|
||||||
|
|
||||||
installed-system = { ... }: {
|
installed-system = { config, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
(lib.optionalAttrs (testMode == "direct") tsp-config)
|
(lib.optionalAttrs (testMode == "direct") tsp-config)
|
||||||
(lib.optionalAttrs (testMode == "module") {
|
(lib.optionalAttrs (testMode == "module") {
|
||||||
|
@ -101,11 +101,14 @@ let
|
||||||
# config for tests to make them run faster or work at all
|
# config for tests to make them run faster or work at all
|
||||||
documentation.enable = false;
|
documentation.enable = false;
|
||||||
hardware.enableAllFirmware = lib.mkForce false;
|
hardware.enableAllFirmware = lib.mkForce false;
|
||||||
boot.initrd.preDeviceCommands = ''
|
boot.initrd.preDeviceCommands = lib.mkIf (!config.boot.initrd.systemd.enable) ''
|
||||||
echo -n 'secretsecret' > /tmp/secret.key
|
echo -n 'secretsecret' > /tmp/secret.key
|
||||||
'';
|
'';
|
||||||
|
boot.initrd.systemd.contents."/tmp/secret.key".text = "secretsecret";
|
||||||
boot.consoleLogLevel = lib.mkForce 100;
|
boot.consoleLogLevel = lib.mkForce 100;
|
||||||
boot.loader.systemd-boot.enable = lib.mkDefault efi;
|
boot.loader.systemd-boot.enable = lib.mkDefault efi;
|
||||||
|
|
||||||
|
boot.initrd.systemd.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
installed-system-eval = eval-config {
|
installed-system-eval = eval-config {
|
||||||
|
|
Loading…
Reference in a new issue