2021-11-18 15:40:19 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
networking.defaultGateway = {
|
|
|
|
address = "192.168.1.254";
|
|
|
|
interface = "eno1";
|
|
|
|
};
|
|
|
|
|
|
|
|
services.nomad.settings.datacenter = "neptune";
|
|
|
|
|
2021-12-08 16:57:54 +00:00
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
2022-01-03 22:47:55 +00:00
|
|
|
|
|
|
|
services.cron = {
|
|
|
|
enable = true;
|
|
|
|
systemCronJobs = [
|
|
|
|
"0 2 * * * ${config.system.path}/bin/nix-collect-garbage --delete-older-than 10d"
|
|
|
|
"30 2 * * * ${config.system.path}/bin/docker run --rm -it -v /var/lib/drone/nix:/nix nixpkgs/nix:nixos-21.05 nix-collect-garbage --delete-older-than 10d"
|
|
|
|
];
|
|
|
|
};
|
2021-11-18 15:40:19 +00:00
|
|
|
}
|