mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-04-04 19:20:58 +02: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
|
@ -42,6 +42,24 @@
|
||||||
networking.defaultGateway = "129.199.134.254";
|
networking.defaultGateway = "129.199.134.254";
|
||||||
networking.nameservers = [ "8.8.8.8" ];
|
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;
|
documentation.nixos.enable = false;
|
||||||
nix.gc.automatic = true;
|
nix.gc.automatic = true;
|
||||||
nix.gc.options = "--delete-older-than 30d";
|
nix.gc.options = "--delete-older-than 30d";
|
||||||
|
|
Loading…
Add table
Reference in a new issue