summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authorWill Fancher <elvishjerricco@gmail.com>2023-11-07 13:28:31 -0500
committerWill Fancher <elvishjerricco@gmail.com>2023-11-07 13:28:31 -0500
commit03f089e11d1e73a54b510e1f3909bb20eb53aa0b (patch)
treecaf1a971d2312131b78bcddbae62dab7c619095e /nixos/modules/system
parentcfbb29d76949ae53c457f152c52c173ea4bdd862 (diff)
downloadnixpkgs-03f089e11d1e73a54b510e1f3909bb20eb53aa0b.tar
nixpkgs-03f089e11d1e73a54b510e1f3909bb20eb53aa0b.tar.gz
nixpkgs-03f089e11d1e73a54b510e1f3909bb20eb53aa0b.tar.bz2
nixpkgs-03f089e11d1e73a54b510e1f3909bb20eb53aa0b.tar.lz
nixpkgs-03f089e11d1e73a54b510e1f3909bb20eb53aa0b.tar.xz
nixpkgs-03f089e11d1e73a54b510e1f3909bb20eb53aa0b.tar.zst
nixpkgs-03f089e11d1e73a54b510e1f3909bb20eb53aa0b.zip
nixos/initrd-ssh: Only warn about shell when using systemd initrd
Diffstat (limited to 'nixos/modules/system')
-rw-r--r--nixos/modules/system/boot/initrd-ssh.nix2
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 3df14030ab6..a8cd2e8f05f 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'
     '';