mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
fix: set lib.mkDefault false for SSH -> PasswordAuthentication
This commit is contained in:
parent
a20639e029
commit
312754fe05
1 changed files with 2 additions and 2 deletions
|
|
@ -1,10 +1,10 @@
|
||||||
{ ... }:
|
{ lib, ... }:
|
||||||
{
|
{
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ports = [22];
|
ports = [22];
|
||||||
settings = {
|
settings = {
|
||||||
PasswordAuthentication = false;
|
PasswordAuthentication = lib.mkDefault false;
|
||||||
AllowUsers = null;
|
AllowUsers = null;
|
||||||
PermitRootLogin = "no";
|
PermitRootLogin = "no";
|
||||||
LoginGraceTime = 0;
|
LoginGraceTime = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue