Skip to content

Commit

Permalink
Merge pull request #266116 from ElvishJerricco/sd-s1-user-shells-fix-…
Browse files Browse the repository at this point in the history
…warning

nixos/initrd-ssh: Only warn about shell when using systemd initrd
  • Loading branch information
ElvishJerricco authored Nov 8, 2023
2 parents 23a5f1f + 03f089e commit eaad9ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/system/boot/initrd-ssh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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'
'';

Expand Down

0 comments on commit eaad9ec

Please sign in to comment.