format nix

This commit is contained in:
ChaotiCryptidz 2021-12-29 13:17:01 +00:00
parent d857958abc
commit bcaa56ee97
4 changed files with 23 additions and 25 deletions

View file

@ -1,13 +1,13 @@
{...}: { { ... }: {
programs.ssh.enable = true; programs.ssh.enable = true;
programs.ssh.matchBlocks = { programs.ssh.matchBlocks = {
"lappy" = { "lappy" = {
user = "lappy.tailscale-internal.owo.monster"; user = "lappy.tailscale-internal.owo.monster";
hostname = "100.115.10.34"; hostname = "100.115.10.34";
}; };
"hetzner-vm" = { "hetzner-vm" = {
user = "root"; user = "root";
hostname = "hetzner-vm.tailscale-internal.owo.monster"; hostname = "hetzner-vm.tailscale-internal.owo.monster";
}; };
}; };
} }

View file

@ -44,7 +44,7 @@
enable = true; enable = true;
networks.eth0 = { networks.eth0 = {
name = "eth0"; name = "eth0";
address = ["2a01:4f9:c010:8beb::/64"]; address = [ "2a01:4f9:c010:8beb::/64" ];
gateway = [ "fe80::1" ]; gateway = [ "fe80::1" ];
}; };
}; };

View file

@ -1,16 +1,13 @@
{...}: { { ... }: {
services.restic.backups.hetzner-vm = { services.restic.backups.hetzner-vm = {
user = "root"; user = "root";
paths = [ paths = [ "/var/lib/postgresql" "/var/lib/vault" ];
"/var/lib/postgresql" timerConfig = {
"/var/lib/vault" OnBootSec = "1m";
]; OnCalendar = "daily";
timerConfig = {
OnBootSec = "1m";
OnCalendar = "daily";
};
repository = "/root/backup";
passwordFile = "/secrets/restic-password";
environmentFile = "/secrets/restic-env";
}; };
repository = "/root/backup";
passwordFile = "/secrets/restic-password";
environmentFile = "/secrets/restic-env";
};
} }

View file

@ -3,4 +3,5 @@
services.tlp.enable = true; services.tlp.enable = true;
powerManagement.enable = true; powerManagement.enable = true;
powerManagement.powertop.enable = true; powerManagement.powertop.enable = true;
programs.light.enable = true;
} }