File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 86
86
tsp-config = tsp-generator . config testConfigBooted ;
87
87
num-disks = builtins . length ( lib . attrNames testConfigBooted . disko . devices . disk ) ;
88
88
89
- installed-system = { ... } : {
89
+ installed-system = { config , ... } : {
90
90
imports = [
91
91
( lib . optionalAttrs ( testMode == "direct" ) tsp-config )
92
92
( lib . optionalAttrs ( testMode == "module" ) {
@@ -101,11 +101,14 @@ let
101
101
# config for tests to make them run faster or work at all
102
102
documentation . enable = false ;
103
103
hardware . enableAllFirmware = lib . mkForce false ;
104
- boot . initrd . preDeviceCommands = ''
104
+ boot . initrd . preDeviceCommands = lib . mkIf ( ! config . boot . initrd . systemd . enable ) ''
105
105
echo -n 'secretsecret' > /tmp/secret.key
106
106
'' ;
107
+ boot . initrd . systemd . contents . "/tmp/secret.key" . text = "secretsecret" ;
107
108
boot . consoleLogLevel = lib . mkForce 100 ;
108
109
boot . loader . systemd-boot . enable = lib . mkDefault efi ;
110
+
111
+ boot . initrd . systemd . enable = true ;
109
112
} ;
110
113
111
114
installed-system-eval = eval-config {
You can’t perform that action at this time.
0 commit comments