nixos/initrd-ssh: Only warn about shell when using systemd initrd
This commit is contained in:
@@ -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'
|
Please set 'boot.initrd.systemd.users.root.shell' instead of 'boot.initrd.network.ssh.shell'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user