2021-09-22 10:16:11 +02:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
2021-09-27 14:55:55 +02:00
|
|
|
../../common/services/ssh.nix
|
2021-12-18 09:58:36 +01:00
|
|
|
../../common/users.nix
|
2021-11-20 07:18:18 +01:00
|
|
|
#./services/restic.nix
|
|
|
|
./services/mail.nix
|
2021-09-22 10:16:11 +02:00
|
|
|
./services/acme.nix
|
|
|
|
./data/secrets/secrets.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
boot.loader.grub.enable = true;
|
|
|
|
boot.loader.grub.version = 2;
|
|
|
|
boot.loader.grub.device = "/dev/sda";
|
|
|
|
boot.supportedFilesystems = ["zfs"];
|
|
|
|
services.zfs.autoSnapshot.enable = true;
|
|
|
|
services.zfs.autoScrub.enable = true;
|
|
|
|
|
2021-11-20 07:18:18 +01:00
|
|
|
networking.hostName = "mail";
|
|
|
|
networking.hostId = "1e04e84b";
|
2021-09-22 10:16:11 +02:00
|
|
|
time.timeZone = "Europe/Copenhagen";
|
|
|
|
networking.useDHCP = false;
|
|
|
|
networking.interfaces.ens3.useDHCP = true;
|
2021-11-20 07:18:18 +01:00
|
|
|
networking.interfaces.ens3.ipv6.addresses = [ { address = "2a01:4f9:c010:624a::1"; prefixLength = 64; } ];
|
2021-09-22 10:16:11 +02:00
|
|
|
networking.defaultGateway6 = { address = "fe80::1"; interface = "ens3"; };
|
|
|
|
|
|
|
|
security.sudo.wheelNeedsPassword = false;
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
vim
|
|
|
|
htop
|
|
|
|
iotop
|
2021-09-23 08:34:01 +02:00
|
|
|
dig
|
2021-09-22 10:16:11 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
nix = {
|
|
|
|
autoOptimiseStore = true;
|
|
|
|
trustedUsers = [
|
|
|
|
"root"
|
|
|
|
"@wheel"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
# Use hetzner firewall instead
|
|
|
|
networking.firewall.enable = false;
|
|
|
|
system.stateVersion = "21.05";
|
|
|
|
|
|
|
|
}
|