nix-config/hosts/containers/nix-build/configuration.nix

60 lines
1.6 KiB
Nix
Raw Normal View History

2021-10-03 16:19:37 +02:00
{ config, pkgs, ... }:
{
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;
package = pkgs.nixUnstable;
trustedUsers = [ "client" ];
extraOptions = ''
builders-use-substitutes = true
'';
};
networking.hostName = "nix-build"; # Define your hostname.
# time.timeZone = "Europe/Amsterdam";
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour.
networking.useDHCP = false;
networking.interfaces.enp6s18.useDHCP = true;
environment.systemPackages = with pkgs; [
wget
vim
git
];
services.openssh.enable = true;
services.openssh.permitRootLogin = "yes";
networking.firewall.allowedTCPPorts = [ 22 ];
# 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. Its 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?
}