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

60 lines
1.6 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ config, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
];
boot = {
loader = {
systemd-boot.enable = true;
efi.efiSysMountPoint = "/boot";
};
tmpOnTmpfs = true;
cleanTmpDir = true;
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?
}