tin vip vai lon
This commit is contained in:
parent
5760ed4067
commit
4737199992
10 changed files with 148 additions and 110 deletions
13
modules/services/cloudflare-dyndns.nix
Normal file
13
modules/services/cloudflare-dyndns.nix
Normal 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" ];
|
||||
};
|
||||
}
|
||||
9
modules/services/fail2ban.nix
Normal file
9
modules/services/fail2ban.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ ... }:
|
||||
{
|
||||
security.fail2ban = {
|
||||
enable = true;
|
||||
ignoreIP = [
|
||||
"192.168.0.0/16"
|
||||
];
|
||||
};
|
||||
}
|
||||
21
modules/services/openssh.nix
Normal file
21
modules/services/openssh.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
{ ... }: {
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
}
|
||||
{ ... }:
|
||||
{
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue