nixos/initrd-ssh: Only warn about shell when using systemd initrd

This commit is contained in:
Will Fancher
2023-11-07 13:28:31 -05:00
parent cfbb29d769
commit 03f089e11d

View File

@@ -166,7 +166,7 @@ in
}
];
warnings = lib.optional (config.boot.initrd.systemd.enable -> cfg.shell != null) ''
warnings = lib.optional (config.boot.initrd.systemd.enable && cfg.shell != null) ''
Please set 'boot.initrd.systemd.users.root.shell' instead of 'boot.initrd.network.ssh.shell'
'';