2020-11-27 20:56:20 +00:00
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
imports = [
|
|
|
|
|
../../common
|
|
|
|
|
./encboot.nix
|
|
|
|
|
./hardware.nix
|
|
|
|
|
./services/murmur.nix
|
|
|
|
|
./services/mail.nix
|
2021-01-27 16:01:00 +00:00
|
|
|
|
./services/sympa.nix
|
2020-11-27 20:56:20 +00:00
|
|
|
|
# ./services/engelsystem.nix
|
|
|
|
|
./services/codimd.nix
|
|
|
|
|
../../common
|
2021-01-02 08:49:56 +00:00
|
|
|
|
# ./wireguard.nix
|
2020-11-27 20:56:20 +00:00
|
|
|
|
./services/nginx.nix
|
|
|
|
|
# ./k8s.nix
|
|
|
|
|
./services/docker.nix
|
2020-11-29 03:39:23 +00:00
|
|
|
|
./services/gitlab-runner.nix
|
2021-01-12 18:20:49 +00:00
|
|
|
|
./services/lantifa.nix
|
2020-11-27 20:56:20 +00:00
|
|
|
|
];
|
|
|
|
|
boot.loader.grub.enable = true;
|
|
|
|
|
boot.loader.grub.version = 2;
|
|
|
|
|
boot.loader.grub.device = "/dev/sda";
|
|
|
|
|
boot.supportedFilesystems = [ "zfs" ];
|
|
|
|
|
|
|
|
|
|
# networking
|
|
|
|
|
networking.hostName = "hainich";
|
|
|
|
|
networking.hostId = "8a58cb2f";
|
|
|
|
|
networking.useDHCP = true;
|
|
|
|
|
networking.interfaces.enp6s0.ipv4.addresses = [
|
|
|
|
|
{
|
|
|
|
|
address = "46.4.63.148";
|
|
|
|
|
prefixLength = 27;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
address = "46.4.63.158";
|
|
|
|
|
prefixLength = 27;
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
networking.interfaces.enp6s0.ipv6.addresses = [ {
|
|
|
|
|
address = "2a01:4f8:140:84c9::1";
|
|
|
|
|
prefixLength = 64;
|
|
|
|
|
} ];
|
|
|
|
|
networking.defaultGateway = "46.4.63.129";
|
|
|
|
|
networking.nameservers = [
|
|
|
|
|
"1.1.1.1" "1.0.0.1"
|
|
|
|
|
"2606:4700:4700::1111" "2606:4700:4700::1001"
|
|
|
|
|
];
|
2021-01-02 08:49:56 +00:00
|
|
|
|
networking.defaultGateway6 = {
|
|
|
|
|
address = "fe80::1";
|
|
|
|
|
interface = "enp6s0";
|
|
|
|
|
};
|
2020-11-27 20:56:20 +00:00
|
|
|
|
|
2021-01-15 22:46:45 +00:00
|
|
|
|
hacc.nftables.nat.enable = true;
|
2020-11-27 20:56:20 +00:00
|
|
|
|
networking.nat.internalInterfaces = ["ve-+"];
|
2021-01-15 23:40:48 +00:00
|
|
|
|
networking.nat.internalIPs = [ "192.168.100.0/24" "172.17.0.0/16" ];
|
2020-11-27 20:56:20 +00:00
|
|
|
|
networking.nat.externalInterface = "enp6s0";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [ 22 80 443 ];
|
|
|
|
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
|
|
|
|
# networking.firewall.enable = false;
|
|
|
|
|
|
|
|
|
|
# misc
|
|
|
|
|
time.timeZone = "UTC";
|
|
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
wget vim git
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
services.openssh.enable = true;
|
|
|
|
|
services.openssh.ports = [ 22 62954 ];
|
|
|
|
|
|
|
|
|
|
users.users.root = {
|
|
|
|
|
openssh.authorizedKeys.keys = [
|
2020-12-21 22:26:35 +00:00
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL6JWi0MBDz0Zy4zjauQv28xYmHyapb8D4zeesq91LLE schweby@txsbcct"
|
2020-12-24 16:31:03 +00:00
|
|
|
|
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCvmrk3i04tXfrSlZtHFbG3o6lQgh3ODMWmGDING4TJ4ctidexmMNY15IjVjzXZgQSET1uKLDLITiaPsii8vaWERZfjm3jjub845mpKkKv48nYdM0eCbv7n604CA3lwoB5ebRgULg4oGTi60rQ4trFf3iTkJfmiLsieFBZz7l+DfgeDEjDNSJcrkOggGBrjE5vBXoDimdkNh8kBNwgMDj1kPR/FHDqybSd5hohCJ5FzQg9vzl/x/H1rzJJKYPO4svSgHkYNkeoL84IZNeHom+UEHX0rw2qAIEN6AiHvNUJR38relvQYxbVdDSlaGN3g26H2ehsmolf+U0uQlRAXTHo0NbXNVYOfijFKL/jWxNfH0aRycf09Lu60oY54gkqS/J0GoQe/OGNq1Zy72DI+zAwEzyCGfSDbAgVF7Y3mU2HqcqGqNzu7Ade5oCbLmkT7yzDM3x6IsmT1tO8dYiT8Qv+zFAECkRpw3yDkJkPOxNKg10oM318whMTtM3yqntE90hk= schweby@taxusbaccata"
|
2020-11-27 20:56:20 +00:00
|
|
|
|
];
|
|
|
|
|
initialHashedPassword = "$6$F316njEF2$GMF4OmPSF6QgZ3P/DblQ/UFMgoo98bztbdw7X0ygvBGC1UMMIc13Vtxjd/ZGRYW/pEHACZZ7sbRZ48t6xhvO7/";
|
|
|
|
|
# shell = pkgs.fish;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# storage stuffs!
|
|
|
|
|
services.zfs = {
|
|
|
|
|
autoSnapshot = {
|
|
|
|
|
enable = true;
|
|
|
|
|
};
|
|
|
|
|
autoScrub = {
|
|
|
|
|
enable = true;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2020-11-29 03:16:57 +00:00
|
|
|
|
boot.kernelPackages = pkgs.linuxPackages;
|
2020-11-27 20:56:20 +00: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.03"; # Did you read the comment?
|
|
|
|
|
}
|