tin vip vai lon

This commit is contained in:
Asaki Yuki 2026-04-13 22:37:37 +07:00
parent 5760ed4067
commit 4737199992
10 changed files with 148 additions and 110 deletions

View file

@ -0,0 +1,13 @@
{ ... }:
{
services.cloudflare-dyndns = {
enable = true;
apiTokenFile = "/home/asakiyuki/.secret/CLOUDFLARE_TOKEN_KEY";
frequency = "*:0/5";
proxied = true;
ipv6 = false;
ipv4 = true;
deleteMissing = false;
domains = [ "ddns.asakiyuki.com" ];
};
}

View file

@ -0,0 +1,9 @@
{ ... }:
{
security.fail2ban = {
enable = true;
ignoreIP = [
"192.168.0.0/16"
];
};
}

View file

@ -0,0 +1,21 @@
{ ... }:
{
services.openssh = {
enable = true;
ports = [ 15523 ];
authorizedKeysInHomedir = true;
authorizedKeysFiles = [ "/home/asakiyuki/.ssh/authorized_keys" ];
settings = {
AllowUsers = [
"asakiyuki"
"junko"
];
PasswordAuthentication = true;
KbdInteractiveAuthentication = false;
AllowAgentForwarding = false;
AllowStreamLocalForwarding = false;
X11Forwarding = false;
PermitRootLogin = "no";
};
};
}

View file

@ -1,6 +1,7 @@
{ ... }: {
services.pipewire = {
enable = true;
pulse.enable = true;
};
}
{ ... }:
{
services.pipewire = {
enable = true;
pulse.enable = true;
};
}