feat: add nextcloud

This commit is contained in:
DACHXY 2025-04-21 14:52:42 +08:00
parent ca5db8c1c2
commit b4bd51410c
10 changed files with 373 additions and 37 deletions

View file

@ -1,4 +1,4 @@
{ settings, ... }:
{ settings, lib, ... }:
{
networking = {
@ -15,10 +15,10 @@
enable = true;
ports = [ 22 ];
settings = {
PasswordAuthentication = false;
AllowUsers = [ settings.personal.username ];
UseDns = true;
PermitRootLogin = "no";
PasswordAuthentication = lib.mkDefault false;
AllowUsers = lib.mkDefault [ settings.personal.username ];
UseDns = lib.mkDefault true;
PermitRootLogin = lib.mkDefault "no";
};
};