fix: add static ip addresses to droppie

This commit is contained in:
Benjamin Bädorf 2023-11-08 00:09:49 +01:00
parent b555b306b9
commit fda3130e30
No known key found for this signature in database
GPG key ID: 1B7BF5B77A521346
3 changed files with 5 additions and 4 deletions

View file

@ -26,7 +26,7 @@ in {
systemd.timers."shutdown-after-backup" = { systemd.timers."shutdown-after-backup" = {
enable = true; enable = true;
timerConfig = { timerConfig = {
OnCalendar = "*-*-* 02..09:05,20,35,50:00 Etc/UTC"; OnCalendar = "*-*-* 02..09:05,15,25,35,45,55:00 Etc/UTC";
}; };
wantedBy = ["timers.target"]; wantedBy = ["timers.target"];
partOf = ["shutdown-after-backup.service"]; partOf = ["shutdown-after-backup.service"];

View file

@ -19,8 +19,6 @@ in {
hardware.cpu.intel.updateMicrocode = true; hardware.cpu.intel.updateMicrocode = true;
networking.hostName = "droppie";
services.openssh.openFirewall = true; services.openssh.openFirewall = true;
pub-solar.core.disk-encryption-active = false; pub-solar.core.disk-encryption-active = false;

View file

@ -4,8 +4,11 @@
pkgs, pkgs,
... ...
}: { }: {
networking.hostName = "droppie";
networking.interfaces.enp2s0f0 = { networking.interfaces.enp2s0f0 = {
ipv6.addresses = [ { address = "2a02:908:5b1:e3c0:3::"; prefixLength = 64; } ]; ipv4.addresses = [ { address = "192.168.178.3"; prefixLength = 32; } ];
ipv6.addresses = [ { address = "2a02:908:5b1:e3c0:3::"; prefixLength = 128; } ];
}; };
age.secrets.wg-private-key.file = "${flake.self}/secrets/wg-private-droppie.age"; age.secrets.wg-private-key.file = "${flake.self}/secrets/wg-private-droppie.age";