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
+1 -1
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'
'';