mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-27 06:10:53 +01:00
Merge branch 'main' of github.com:JulienMalka/nix-config
This commit is contained in:
commit
9802f48358
1 changed files with 18 additions and 0 deletions
18
rpi.nix
18
rpi.nix
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue