Corrected time for lambda

This commit is contained in:
Julien Malka 2022-01-06 14:17:21 +01:00
parent 8daeddf5c5
commit 522416952f
No known key found for this signature in database
GPG key ID: 3C68E13964FEA07F

18
rpi.nix
View file

@ -41,6 +41,24 @@
];
networking.defaultGateway = "129.199.134.254";
networking.nameservers = [ "8.8.8.8" ];
services.timesyncd.enable = true;
systemd.services.htpdate = {
description = "htpdate daemon";
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
serviceConfig = {
Type = "forking";
PIDFile = "/run/htpdate.pid";
ExecStart = lib.concatStringsSep " " [
"${pkgs.htpdate}/bin/htpdate"
"-D -u nobody"
"-a -s"
"-l"
"www.linux.org"
];
};
};
documentation.nixos.enable = false;
nix.gc.automatic = true;