diff options
author | Will Fancher | 2023-11-07 13:28:31 -0500 |
---|---|---|
committer | Will Fancher | 2023-11-07 13:28:31 -0500 |
commit | 03f089e11d1e73a54b510e1f3909bb20eb53aa0b (patch) | |
tree | caf1a971d2312131b78bcddbae62dab7c619095e | |
parent | cfbb29d76949ae53c457f152c52c173ea4bdd862 (diff) |
nixos/initrd-ssh: Only warn about shell when using systemd initrd
-rw-r--r-- | nixos/modules/system/boot/initrd-ssh.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/initrd-ssh.nix b/nixos/modules/system/boot/initrd-ssh.nix index 3df14030ab68..a8cd2e8f05fc 100644 --- a/nixos/modules/system/boot/initrd-ssh.nix +++ b/nixos/modules/system/boot/initrd-ssh.nix @@ -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' ''; |