2021-07-28 23:55:34 +02:00
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
2022-08-14 22:27:15 +02:00
|
|
|
|
imports = [
|
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
./system.nix
|
|
|
|
|
# TODO monitoring
|
|
|
|
|
];
|
2021-07-28 23:55:34 +02:00
|
|
|
|
|
|
|
|
|
# Use the systemd-boot EFI boot loader.
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
|
|
boot.initrd.supportedFilesystems = [ "zfs" ];
|
|
|
|
|
boot.supportedFilesystems = [ "zfs" ];
|
|
|
|
|
|
|
|
|
|
networking.hostName = "remote-builder-01";
|
|
|
|
|
networking.hostId = "11894198";
|
|
|
|
|
|
|
|
|
|
# Set your time zone.
|
|
|
|
|
time.timeZone = "Europe/Paris";
|
|
|
|
|
|
|
|
|
|
# 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;
|
2022-08-15 01:33:02 +02:00
|
|
|
|
networking.interfaces.ens18 = {
|
2022-08-15 00:00:55 +02:00
|
|
|
|
useDHCP = true;
|
|
|
|
|
ipv6.addresses = [{
|
|
|
|
|
address = "2001:470:1f13:187:611:4514:d93a:f80a";
|
|
|
|
|
prefixLength = 64;
|
|
|
|
|
}];
|
|
|
|
|
};
|
2022-08-15 01:33:02 +02:00
|
|
|
|
networking.interfaces.ens19.useDHCP = true;
|
2021-07-28 23:55:34 +02:00
|
|
|
|
|
|
|
|
|
# Select internationalisation properties.
|
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
|
console = {
|
|
|
|
|
font = "Lat2-Terminus16";
|
|
|
|
|
keyMap = "us";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# List packages installed in system profile. To search, run:
|
2022-08-16 01:59:59 +02:00
|
|
|
|
environment.systemPackages = with pkgs; [ vim wget kitty.terminfo git ];
|
2021-07-28 23:55:34 +02:00
|
|
|
|
|
2022-08-15 03:00:30 +02:00
|
|
|
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
|
|
|
|
2021-07-28 23:55:34 +02:00
|
|
|
|
# Some programs need SUID wrappers, can be configured further or are
|
|
|
|
|
# started in user sessions.
|
|
|
|
|
programs.mtr.enable = true;
|
|
|
|
|
programs.gnupg.agent = {
|
|
|
|
|
enable = true;
|
|
|
|
|
enableSSHSupport = true;
|
|
|
|
|
};
|
|
|
|
|
|
2022-08-14 22:27:15 +02:00
|
|
|
|
programs.mosh.enable = true;
|
|
|
|
|
|
2021-07-28 23:55:34 +02:00
|
|
|
|
# List services that you want to enable:
|
|
|
|
|
|
|
|
|
|
services.zfs.autoScrub.enable = true;
|
|
|
|
|
|
|
|
|
|
# Enable the OpenSSH daemon.
|
|
|
|
|
services.openssh.enable = true;
|
2022-08-15 03:28:40 +02:00
|
|
|
|
users.users.root.openssh.authorizedKeys.keyFiles = [
|
2022-08-16 01:59:59 +02:00
|
|
|
|
../pubkeys/gdd.keys
|
|
|
|
|
../pubkeys/raito.keys
|
2023-02-24 00:59:59 +01:00
|
|
|
|
../pubkeys/sinavir.keys
|
2022-08-16 01:59:59 +02:00
|
|
|
|
../pubkeys/remote-builders.keys
|
2022-08-15 03:28:40 +02:00
|
|
|
|
];
|
2021-07-28 23:55:34 +02:00
|
|
|
|
|
|
|
|
|
# Open ports in the firewall.
|
|
|
|
|
# networking.firewall.allowedTCPPorts = [ ... ];
|
|
|
|
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
|
|
|
|
# Or disable the firewall altogether.
|
|
|
|
|
networking.firewall.enable = false;
|
|
|
|
|
|
|
|
|
|
# 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 = "21.05"; # Did you read the comment?
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|