Simplify SSH config, standardize filesystems enabling
This commit is contained in:
parent
a25bcecf7b
commit
c6ead08127
2 changed files with 6 additions and 7 deletions
|
@ -1,9 +1,8 @@
|
||||||
{ config, lib, ... }:
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
boot.supportedFilesystems = {
|
boot.supportedFilesystems = {
|
||||||
btrfs = true;
|
ntfs = config.system.desktop.enable;
|
||||||
ntfs = lib.mkIf config.system.desktop.enable true;
|
zfs = config.system.server.enable;
|
||||||
zfs = lib.mkIf config.system.server.enable true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
|
|
@ -5,10 +5,10 @@
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
PermitRootLogin = lib.mkForce "no";
|
AllowGroups = [ "users" ];
|
||||||
PrintLastLog = "no";
|
AuthenticationMethods = "publickey";
|
||||||
PasswordAuthentication = false;
|
|
||||||
PermitEmptyPasswords = true;
|
PermitEmptyPasswords = true;
|
||||||
|
PrintLastLog = "no";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue