nixcfg/site/neptune.nix

21 lines
557 B
Nix
Raw Normal View History

2021-11-18 16:40:19 +01:00
{ config, pkgs, ... }:
{
networking.defaultGateway = {
address = "192.168.1.254";
interface = "eno1";
};
services.nomad.settings.datacenter = "neptune";
2021-12-08 17:57:54 +01:00
networking.firewall.allowedTCPPorts = [ 80 443 ];
services.cron = {
enable = true;
systemCronJobs = [
2022-01-04 11:26:58 +01:00
"0 2 * * * root nix-collect-garbage --delete-older-than 10d >> /root/nix_gc_log 2>&1"
2022-01-18 12:38:16 +01:00
"30 2 * * * root docker run --rm -v /var/lib/drone/nix:/nix nixpkgs/nix:nixos-21.05 nix-collect-garbage --delete-older-than 30d >> /root/drone_nix_gc_log 2>&1"
];
};
2021-11-18 16:40:19 +01:00
}