infra/build01/configuration.nix

59 lines
1.4 KiB
Nix
Raw Normal View History

2019-08-11 19:53:02 +01:00
{ config, pkgs, lib, ... }:
2020-01-13 18:49:46 +00:00
let
userImports = builtins.map (f: ../users/. + "/${f}") (builtins.filter (x: x != "lib.nix") (lib.attrNames (builtins.readDir ../users)));
2020-01-22 12:37:13 +01:00
in
{
imports = [
./hardware-configuration.nix
2019-11-01 17:15:45 +00:00
./buildkite.nix
2019-11-01 17:15:45 +00:00
./gitlab.nix
2020-01-12 21:15:32 +01:00
./hydra.nix
./cache.nix
./nixpkgs-update.nix
2019-08-11 19:53:02 +01:00
../profiles/common.nix
../profiles/docker.nix
2020-01-13 18:49:46 +00:00
] ++ userImports;
# /boot is a mirror raid
boot.loader.grub.devices = [ "/dev/sda" "/dev/sdb" ];
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
networking.hostName = "nix-community-build01";
networking.hostId = "d2905767";
networking.usePredictableInterfaceNames = false;
networking.dhcpcd.enable = false;
systemd.network = {
enable = true;
networks."eth0".extraConfig = ''
[Match]
Name = eth0
[Network]
Address = 2a01:4f8:13b:2ceb::1/64
Gateway = fe80::1
Address = 94.130.143.84/26
Gateway = 94.130.143.65
'';
};
2019-08-12 17:24:59 +00:00
services.cron.enable = true;
services.cron.systemCronJobs = [
# record that this machine is alive
"*/5 * * * * root ${pkgs.curl}/bin/curl -X POST -sfL https://hc-ping.com/fcf6c029-5b57-44aa-b392-923f3d894dd9"
2019-08-12 17:24:59 +00:00
];
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.supportedFilesystems = [ "zfs" ];
2020-04-17 22:43:39 +02:00
security.acme.email = "trash@nix-community.org";
security.acme.acceptTerms = true;
2019-08-11 19:53:02 +01:00
system.stateVersion = "19.09";
}