1
0
Fork 0

WIP: weewx

This commit is contained in:
Daniel Kempkens 2022-07-31 15:10:28 +02:00
parent b100e88fdd
commit 5799cc1ce4
6 changed files with 39 additions and 3 deletions

View file

@ -79,4 +79,17 @@
mode = "0644";
};
# weewx
systemd.tmpfiles.rules = [
"d /etc/container-webserver/weewx 0755 421 421"
];
environment.etc."container-webserver/weewx/weewx.conf" = {
source = ../../secret/container/webserver/config/weewx.conf;
mode = "0644";
uid = 421;
gid = 421;
};
}

View file

@ -1,5 +1,5 @@
let
secret = import ../../secret/container/webserver.nix;
secret = import ../../secret/container/webserver;
custom-config = import ./config.nix { inherit secret; };
in
{
@ -98,6 +98,22 @@ in
};
};
};
# weewx = {
# service = {
# image = "ghcr.io/nifoc/weewx-docker:master";
# restart = "always";
# depends_on = [ "ipv6nat" "mosquitto" ];
# networks = [ "webserver" ];
# environment = {
# "TZ" = "Europe/Berlin";
# };
# volumes = [
# "/etc/container-webserver/weewx:/data"
# ];
# labels = secret.container.webserver.weewx.labels;
# };
# };
};
networks.webserver = {

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
args@{ pkgs, ... }:
let
secret = import ../../secret/hosts/sail.nix;
@ -9,7 +9,7 @@ in
../nixos/ssh.nix
../nixos/git.nix
../nixos/tailscale.nix
(import ../nixos/tailscale.nix (args // { inherit secret; }))
../nixos/arion.nix
../../container/webserver
@ -43,6 +43,13 @@ in
interfaces.enp1s0.ipv6.addresses = secret.networking.interfaces.enp1s0.ipv6.addresses;
defaultGateway6 = { address = "fe80::1"; interface = "enp1s0"; };
timeServers = [
"ntp1.hetzner.de"
"ntp2.hetzner.com"
"ntp3.hetzner.net"
"time.cloudflare.com"
];
};
users.users.root.openssh.authorizedKeys.keys = [