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

nixos/initrd-ssh: Only warn about shell when using systemd initrd
This commit is contained in:
Will Fancher 2023-11-07 21:25:21 -05:00 committed by GitHub
commit eaad9ece24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'
'';