diff --git a/home/base/ssh.nix b/home/base/ssh.nix index 2be7bee..12f85db 100644 --- a/home/base/ssh.nix +++ b/home/base/ssh.nix @@ -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"; + }; }; } diff --git a/hosts/hetzner-vm/hetzner-vm.nix b/hosts/hetzner-vm/hetzner-vm.nix index bfbc4ae..366cd0e 100644 --- a/hosts/hetzner-vm/hetzner-vm.nix +++ b/hosts/hetzner-vm/hetzner-vm.nix @@ -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" ]; }; }; diff --git a/hosts/hetzner-vm/services/restic.nix b/hosts/hetzner-vm/services/restic.nix index ffddedb..f8ed010 100644 --- a/hosts/hetzner-vm/services/restic.nix +++ b/hosts/hetzner-vm/services/restic.nix @@ -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"; }; -} \ No newline at end of file + repository = "/root/backup"; + passwordFile = "/secrets/restic-password"; + environmentFile = "/secrets/restic-env"; + }; +} diff --git a/profiles/laptop/default.nix b/profiles/laptop/default.nix index 1610b50..2910c5e 100644 --- a/profiles/laptop/default.nix +++ b/profiles/laptop/default.nix @@ -3,4 +3,5 @@ services.tlp.enable = true; powerManagement.enable = true; powerManagement.powertop.enable = true; + programs.light.enable = true; }