mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
nixos/sshd: Disable authorizedKeysInHomedir
if stateVersion
>= 24.11
Co-authored-by: Valentin Gagarin <valentin@gagarin.work>
This commit is contained in:
parent
c1c89b84e7
commit
1f08575e3a
3 changed files with 14 additions and 3 deletions
|
@ -302,7 +302,8 @@ in
|
|||
|
||||
authorizedKeysInHomedir = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
default = lib.versionOlder config.system.stateVersion "24.11";
|
||||
defaultText = lib.literalMD "`false` unless [](#opt-system.stateVersion) is 24.05 or older";
|
||||
description = ''
|
||||
Enables the use of the `~/.ssh/authorized_keys` file.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue