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

Changed files
+1 -1
nixos
modules
system
+1 -1
nixos/modules/system/boot/initrd-ssh.nix
···
}
];
-
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'
'';