Unverified Commit eaad9ece authored by Will Fancher's avatar Will Fancher Committed by GitHub
Browse files

Merge pull request #266116 from ElvishJerricco/sd-s1-user-shells-fix-warning

nixos/initrd-ssh: Only warn about shell when using systemd initrd
parents 23a5f1f8 03f089e1
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'
    '';