2022-01-08 01:27:39 +01:00
|
|
|
|
{ hostRegistry, zentralwerk, config, pkgs, lib, ... }:
|
2021-10-03 16:19:37 +02:00
|
|
|
|
|
|
|
|
|
{
|
2022-01-08 01:27:39 +01:00
|
|
|
|
networking.hostName = "nix-build"; # Define your hostname.
|
|
|
|
|
networking.useDHCP = false;
|
|
|
|
|
networking.interfaces.enp6s18 = {
|
|
|
|
|
ipv4.addresses = [{
|
|
|
|
|
address = hostRegistry.hosts.nix-build.ip4;
|
|
|
|
|
prefixLength = zentralwerk.lib.config.site.net.c3d2.subnet4Len;
|
|
|
|
|
}];
|
|
|
|
|
useDHCP = false;
|
|
|
|
|
};
|
|
|
|
|
networking.defaultGateway = "172.22.99.1";
|
|
|
|
|
networking.firewall.allowedTCPPorts = [ 22 ];
|
|
|
|
|
|
2021-10-03 16:19:37 +02:00
|
|
|
|
imports = [
|
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
boot = {
|
2021-10-31 18:59:46 +01:00
|
|
|
|
loader = {
|
|
|
|
|
systemd-boot.enable = true;
|
|
|
|
|
efi.efiSysMountPoint = "/boot";
|
|
|
|
|
};
|
|
|
|
|
|
2021-10-03 16:19:37 +02:00
|
|
|
|
tmpOnTmpfs = true;
|
2021-10-31 18:59:46 +01:00
|
|
|
|
cleanTmpDir = true;
|
|
|
|
|
|
2021-10-03 16:19:37 +02:00
|
|
|
|
kernelModules = [ "kvm-intel" ];
|
|
|
|
|
binfmt.emulatedSystems = [ "armv6l-linux" "armv7l-linux" "aarch64-linux" ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
nix = {
|
|
|
|
|
buildCores = 40;
|
|
|
|
|
maxJobs = 4;
|
2022-01-08 01:27:39 +01:00
|
|
|
|
package = lib.mkForce pkgs.nixUnstable;
|
2021-10-03 16:19:37 +02:00
|
|
|
|
trustedUsers = [ "client" ];
|
|
|
|
|
extraOptions = ''
|
|
|
|
|
builders-use-substitutes = true
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# time.timeZone = "Europe/Amsterdam";
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
wget
|
|
|
|
|
vim
|
|
|
|
|
git
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
services.openssh.enable = true;
|
2022-01-08 01:27:39 +01:00
|
|
|
|
services.openssh.permitRootLogin = lib.mkForce "yes";
|
2021-10-03 16:19:37 +02:00
|
|
|
|
|
|
|
|
|
# This value determines the NixOS release from which the default
|
|
|
|
|
# settings for stateful data, like file locations and database versions
|
|
|
|
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
|
|
|
|
# this value at the release version of the first install of this system.
|
|
|
|
|
# Before changing this value read the documentation for this option
|
|
|
|
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
|
|
|
system.stateVersion = "20.09"; # Did you read the comment?
|
|
|
|
|
}
|