2023-12-09 17:15:50 +01:00
|
|
|
{ lib, config, pkgs, ... }: {
|
|
|
|
imports = [
|
|
|
|
|
2024-02-16 22:21:05 +01:00
|
|
|
#../../system/all/nginx.nix
|
2023-12-09 17:15:50 +01:00
|
|
|
../../system/all/borg-jobs.nix
|
|
|
|
../../system/all/defaults.nix
|
|
|
|
../../system/server/packages.nix
|
|
|
|
|
|
|
|
../../components
|
|
|
|
../../modules
|
|
|
|
|
2024-02-16 22:21:05 +01:00
|
|
|
./disko-config.nix
|
2023-12-09 17:15:50 +01:00
|
|
|
./hetzner.nix
|
|
|
|
|
|
|
|
# services
|
2024-02-16 22:21:05 +01:00
|
|
|
#./borg.nix
|
|
|
|
#./codimd.nix
|
|
|
|
#./gitea.nix
|
|
|
|
#./nextcloud.nix
|
|
|
|
#./packages.nix
|
|
|
|
#./taskserver.nix
|
|
|
|
#./vaultwarden.nix
|
|
|
|
#./nginx.nix
|
|
|
|
#./nginx-wkd.nix
|
|
|
|
|
|
|
|
#./network-tinc.nix
|
|
|
|
#./network-wireguard.nix
|
|
|
|
|
|
|
|
#./media-share.nix
|
|
|
|
#./media-jellyfin.nix
|
|
|
|
#./media-syncthing.nix
|
|
|
|
#./media-transmission.nix
|
|
|
|
#./media-transmission2.nix
|
|
|
|
#./media-arr.nix
|
|
|
|
|
|
|
|
#./sync-opentracker.nix
|
|
|
|
#./sync-torrent.nix
|
2023-12-09 17:15:50 +01:00
|
|
|
|
|
|
|
#./social-jitsi.nix
|
|
|
|
|
|
|
|
# matrix
|
2024-02-16 22:21:05 +01:00
|
|
|
# ------
|
|
|
|
#./terranix-dendrite.nix
|
2023-12-09 17:15:50 +01:00
|
|
|
|
|
|
|
# logging
|
2024-02-16 22:21:05 +01:00
|
|
|
#./loki.nix
|
|
|
|
#./loki-promtail.nix
|
|
|
|
##./prometheus.nix
|
|
|
|
#./grafana.nix
|
2023-12-09 17:15:50 +01:00
|
|
|
./telegraf.nix
|
|
|
|
|
2024-02-16 22:21:05 +01:00
|
|
|
#./cache.nix
|
2023-12-09 17:15:50 +01:00
|
|
|
];
|
|
|
|
|
2024-02-16 22:21:05 +01:00
|
|
|
|
2023-12-09 17:15:50 +01:00
|
|
|
components.terminal.enable = true;
|
|
|
|
components.mainUser.enable = true;
|
|
|
|
components.gui.enable = false;
|
|
|
|
components.network.enable = true;
|
|
|
|
components.network.wifi.enable = false;
|
|
|
|
|
|
|
|
users.users.root.shell = pkgs.zsh;
|
|
|
|
|
|
|
|
security.acme.acceptTerms = true;
|
|
|
|
security.acme.defaults.email = "contact@ingolf-wagner.de";
|
|
|
|
|
|
|
|
sops.defaultSopsFile = ../../secrets/robi.yaml;
|
2024-02-16 22:21:05 +01:00
|
|
|
|
2023-12-09 17:15:50 +01:00
|
|
|
services.smartd.enable = true;
|
|
|
|
|
2024-02-16 22:21:05 +01:00
|
|
|
# Use GRUB2 as the boot loader.
|
|
|
|
# We don't use systemd-boot because Hetzner uses BIOS legacy boot.
|
|
|
|
boot.loader.systemd-boot.enable = false;
|
|
|
|
boot.loader.grub = {
|
|
|
|
enable = true;
|
|
|
|
efiSupport = false;
|
|
|
|
};
|
|
|
|
boot.loader.grub.mirroredBoots = [
|
|
|
|
{ path = "/boot-1"; devices = [ "/dev/sda" ]; }
|
|
|
|
{ path = "/boot-2"; devices = [ "/dev/sdb" ]; }
|
|
|
|
];
|
2023-12-09 17:15:50 +01:00
|
|
|
|
2024-02-16 22:21:05 +01:00
|
|
|
boot.tmp.useTmpfs = true; # make /tmp a tmpfs (performance!)
|
|
|
|
boot.supportedFilesystems = [ "zfs" ];
|
|
|
|
# head -c4 /dev/urandom | od -A none -t x4
|
|
|
|
networking.hostId = "5bb982a6";
|
2023-12-09 17:15:50 +01:00
|
|
|
}
|