format nix
This commit is contained in:
parent
d857958abc
commit
bcaa56ee97
|
@ -1,13 +1,13 @@
|
|||
{...}: {
|
||||
{ ... }: {
|
||||
programs.ssh.enable = true;
|
||||
programs.ssh.matchBlocks = {
|
||||
"lappy" = {
|
||||
user = "lappy.tailscale-internal.owo.monster";
|
||||
hostname = "100.115.10.34";
|
||||
};
|
||||
"hetzner-vm" = {
|
||||
user = "root";
|
||||
hostname = "hetzner-vm.tailscale-internal.owo.monster";
|
||||
};
|
||||
"lappy" = {
|
||||
user = "lappy.tailscale-internal.owo.monster";
|
||||
hostname = "100.115.10.34";
|
||||
};
|
||||
"hetzner-vm" = {
|
||||
user = "root";
|
||||
hostname = "hetzner-vm.tailscale-internal.owo.monster";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
enable = true;
|
||||
networks.eth0 = {
|
||||
name = "eth0";
|
||||
address = ["2a01:4f9:c010:8beb::/64"];
|
||||
address = [ "2a01:4f9:c010:8beb::/64" ];
|
||||
gateway = [ "fe80::1" ];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,16 +1,13 @@
|
|||
{...}: {
|
||||
services.restic.backups.hetzner-vm = {
|
||||
user = "root";
|
||||
paths = [
|
||||
"/var/lib/postgresql"
|
||||
"/var/lib/vault"
|
||||
];
|
||||
timerConfig = {
|
||||
OnBootSec = "1m";
|
||||
OnCalendar = "daily";
|
||||
};
|
||||
repository = "/root/backup";
|
||||
passwordFile = "/secrets/restic-password";
|
||||
environmentFile = "/secrets/restic-env";
|
||||
{ ... }: {
|
||||
services.restic.backups.hetzner-vm = {
|
||||
user = "root";
|
||||
paths = [ "/var/lib/postgresql" "/var/lib/vault" ];
|
||||
timerConfig = {
|
||||
OnBootSec = "1m";
|
||||
OnCalendar = "daily";
|
||||
};
|
||||
}
|
||||
repository = "/root/backup";
|
||||
passwordFile = "/secrets/restic-password";
|
||||
environmentFile = "/secrets/restic-env";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3,4 +3,5 @@
|
|||
services.tlp.enable = true;
|
||||
powerManagement.enable = true;
|
||||
powerManagement.powertop.enable = true;
|
||||
programs.light.enable = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue