WIP: weewx
This commit is contained in:
parent
b100e88fdd
commit
5799cc1ce4
6 changed files with 39 additions and 3 deletions
|
@ -79,4 +79,17 @@
|
||||||
|
|
||||||
mode = "0644";
|
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;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
let
|
let
|
||||||
secret = import ../../secret/container/webserver.nix;
|
secret = import ../../secret/container/webserver;
|
||||||
custom-config = import ./config.nix { inherit secret; };
|
custom-config = import ./config.nix { inherit secret; };
|
||||||
in
|
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 = {
|
networks.webserver = {
|
||||||
|
|
Binary file not shown.
BIN
secret/container/webserver/config/weewx.conf
Normal file
BIN
secret/container/webserver/config/weewx.conf
Normal file
Binary file not shown.
BIN
secret/container/webserver/default.nix
Normal file
BIN
secret/container/webserver/default.nix
Normal file
Binary file not shown.
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }:
|
args@{ pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
secret = import ../../secret/hosts/sail.nix;
|
secret = import ../../secret/hosts/sail.nix;
|
||||||
|
@ -9,7 +9,7 @@ in
|
||||||
../nixos/ssh.nix
|
../nixos/ssh.nix
|
||||||
|
|
||||||
../nixos/git.nix
|
../nixos/git.nix
|
||||||
../nixos/tailscale.nix
|
(import ../nixos/tailscale.nix (args // { inherit secret; }))
|
||||||
|
|
||||||
../nixos/arion.nix
|
../nixos/arion.nix
|
||||||
../../container/webserver
|
../../container/webserver
|
||||||
|
@ -43,6 +43,13 @@ in
|
||||||
|
|
||||||
interfaces.enp1s0.ipv6.addresses = secret.networking.interfaces.enp1s0.ipv6.addresses;
|
interfaces.enp1s0.ipv6.addresses = secret.networking.interfaces.enp1s0.ipv6.addresses;
|
||||||
defaultGateway6 = { address = "fe80::1"; interface = "enp1s0"; };
|
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 = [
|
users.users.root.openssh.authorizedKeys.keys = [
|
||||||
|
|
Loading…
Reference in a new issue