Simplify SSH config, standardize filesystems enabling

This commit is contained in:
Bun 2025-03-28 05:02:32 -04:00
parent a25bcecf7b
commit c6ead08127
2 changed files with 6 additions and 7 deletions

View file

@ -1,9 +1,8 @@
{ config, lib, ... }:
{ config, ... }:
{
boot.supportedFilesystems = {
btrfs = true;
ntfs = lib.mkIf config.system.desktop.enable true;
zfs = lib.mkIf config.system.server.enable true;
ntfs = config.system.desktop.enable;
zfs = config.system.server.enable;
};
services = {

View file

@ -5,10 +5,10 @@
services.openssh = {
enable = true;
settings = {
PermitRootLogin = lib.mkForce "no";
PrintLastLog = "no";
PasswordAuthentication = false;
AllowGroups = [ "users" ];
AuthenticationMethods = "publickey";
PermitEmptyPasswords = true;
PrintLastLog = "no";
};
};