Commit 03f089e1 authored by Will Fancher's avatar Will Fancher
Browse files

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

parent cfbb29d7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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'
    '';