2021-12-28 16:19:29 +01:00
|
|
|
{ lib, config, pkgs, ... }: {
|
|
|
|
imports = [
|
|
|
|
|
2023-02-10 03:33:44 +01:00
|
|
|
../../system/all/nginx.nix
|
2022-01-23 20:23:47 +01:00
|
|
|
../../system/all/borg-jobs.nix
|
2021-12-28 16:19:29 +01:00
|
|
|
../../system/all/defaults.nix
|
2022-01-23 20:23:47 +01:00
|
|
|
../../system/all/syncthing.nix
|
2021-12-30 01:35:19 +01:00
|
|
|
../../system/server/netdata.nix
|
2022-09-20 22:57:44 +02:00
|
|
|
../../system/server/packages.nix
|
2021-12-28 16:19:29 +01:00
|
|
|
|
2023-06-01 11:44:02 +02:00
|
|
|
../../components
|
2022-10-13 10:51:21 +02:00
|
|
|
|
|
|
|
../../modules
|
2022-10-13 10:19:23 +02:00
|
|
|
|
2021-12-28 16:19:29 +01:00
|
|
|
./hetzner.nix
|
2022-01-23 20:23:47 +01:00
|
|
|
|
2023-07-09 00:51:45 +02:00
|
|
|
#./screeps.nix
|
2023-07-07 02:48:44 +02:00
|
|
|
|
2022-02-01 16:20:41 +01:00
|
|
|
./borg.nix
|
2022-01-23 20:23:47 +01:00
|
|
|
./codimd.nix
|
|
|
|
./gitea.nix
|
|
|
|
./nextcloud.nix
|
2021-12-28 16:19:29 +01:00
|
|
|
./packages.nix
|
2021-12-29 19:46:20 +01:00
|
|
|
./taskserver.nix
|
2022-01-23 20:23:47 +01:00
|
|
|
./vaultwarden.nix
|
2022-06-26 15:11:16 +02:00
|
|
|
./nginx.nix
|
2023-07-11 10:03:47 +02:00
|
|
|
./nginx-wkd.nix
|
2023-11-18 12:49:47 +01:00
|
|
|
|
|
|
|
./network-tinc.nix
|
|
|
|
./network-wireguard.nix
|
2023-10-05 09:27:38 +02:00
|
|
|
|
|
|
|
./media-share.nix
|
|
|
|
./media-jellyfin.nix
|
|
|
|
./media-syncthing.nix
|
|
|
|
./media-transmission.nix
|
|
|
|
./media-transmission2.nix
|
2023-11-17 15:13:30 +01:00
|
|
|
./media-arr.nix
|
2023-11-20 09:49:34 +01:00
|
|
|
#./media-tdarr.nix
|
|
|
|
#./media-unmanic.nix
|
2022-01-13 13:40:18 +01:00
|
|
|
|
2023-10-05 16:30:34 +02:00
|
|
|
./social-jitsi.nix
|
2023-09-19 12:18:01 +02:00
|
|
|
|
2023-01-31 13:53:32 +01:00
|
|
|
#./webhook-ring.nix
|
2021-12-28 16:19:29 +01:00
|
|
|
|
|
|
|
#../../system/server
|
2021-12-28 19:48:14 +01:00
|
|
|
|
2021-12-28 16:19:29 +01:00
|
|
|
#./hardware-configuration.nix
|
|
|
|
#./finance.nix
|
|
|
|
#./graylog.nix
|
|
|
|
#./kibana.nix
|
|
|
|
#./mysql.nix
|
|
|
|
#./prometheus.nix
|
|
|
|
#./weechat.nix
|
|
|
|
#./property.nix # flask sucks, find something else
|
|
|
|
|
2023-02-08 16:55:09 +01:00
|
|
|
# matrix
|
2023-10-23 03:10:07 +02:00
|
|
|
./terranix-dendrite.nix
|
2023-02-08 16:55:09 +01:00
|
|
|
|
2023-02-08 00:19:09 +01:00
|
|
|
# logging
|
|
|
|
./loki.nix
|
|
|
|
./loki-promtail.nix
|
|
|
|
./prometheus.nix
|
|
|
|
./grafana.nix
|
2023-02-24 03:51:12 +01:00
|
|
|
./telegraf.nix
|
2023-02-08 00:19:09 +01:00
|
|
|
|
2023-05-03 21:20:51 +02:00
|
|
|
./sync-opentracker.nix
|
2023-05-04 10:12:52 +02:00
|
|
|
./sync-torrent.nix
|
2023-06-09 01:24:53 +02:00
|
|
|
|
|
|
|
./cache.nix
|
2021-12-28 16:19:29 +01:00
|
|
|
];
|
|
|
|
|
2023-07-01 17:34:23 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
components.terminal.enable = true;
|
|
|
|
components.mainUser.enable = true;
|
|
|
|
components.gui.enable = false;
|
|
|
|
|
2023-06-01 11:38:39 +02:00
|
|
|
components.network.enable = true;
|
|
|
|
components.network.wifi.enable = false;
|
2023-02-10 14:53:42 +01:00
|
|
|
|
2022-01-01 10:31:13 +01:00
|
|
|
# 2 hours = 2 * 60 * 60 = 7200 seconds
|
|
|
|
#services.netdata.config.global.history = 7200;
|
|
|
|
# 4 hours = 4 * 60 * 60 = 14440 seconds
|
|
|
|
services.netdata.config.global.history = 14440;
|
|
|
|
# 24 hours = 24 * 60 * 60 = 86400 seconds
|
|
|
|
#services.netdata.config.global.history = 86400;
|
|
|
|
|
2021-12-31 19:15:48 +01:00
|
|
|
services.sshguard.enable = true;
|
|
|
|
|
2021-12-29 19:46:20 +01:00
|
|
|
# Shell configuration
|
|
|
|
# -------------------
|
2023-07-01 17:34:23 +02:00
|
|
|
#programs.custom. zsh.enable = true;
|
2023-02-17 11:45:09 +01:00
|
|
|
users.users.root.shell = pkgs.zsh;
|
2021-12-29 19:46:20 +01:00
|
|
|
|
2022-08-27 03:03:02 +02:00
|
|
|
security.acme.acceptTerms = true;
|
|
|
|
security.acme.defaults.email = "contact@ingolf-wagner.de";
|
2021-12-28 16:19:29 +01:00
|
|
|
|
|
|
|
sops.defaultSopsFile = ../../secrets/robi.yaml;
|
2023-07-07 02:48:44 +02:00
|
|
|
# virtualisation.docker.enable = false;
|
2021-12-28 16:19:29 +01:00
|
|
|
services.printing.enable = false;
|
|
|
|
services.smartd.enable = true;
|
|
|
|
|
2023-05-02 12:55:17 +02:00
|
|
|
# chungus rsync
|
2023-05-01 21:36:46 +02:00
|
|
|
users.users.root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJkqVvuJSvRMO5pG2CHNNBxjB7HlJudK4TQs3BhbOWOD" ];
|
2021-12-28 16:19:29 +01:00
|
|
|
fileSystems."/var/lib/nextcloud" =
|
|
|
|
{
|
|
|
|
device = "/dev/vg/nextcloud";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
|
2022-02-01 16:20:41 +01:00
|
|
|
fileSystems."/var/lib/borgbackup" =
|
|
|
|
{
|
|
|
|
device = "/dev/vg/borg";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
|
2021-12-28 19:48:14 +01:00
|
|
|
fileSystems."/media" =
|
|
|
|
{
|
|
|
|
device = "/dev/vg/media";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
|
2023-02-07 13:09:27 +01:00
|
|
|
# usually part of the wifi.nix module
|
|
|
|
# because Networkd-wait-online is just failing.
|
2023-07-01 17:34:23 +02:00
|
|
|
#systemd.services.systemd-networkd-wait-online.enable = false;
|
2023-02-07 13:09:27 +01:00
|
|
|
systemd.services.NetworkManager-wait-online.enable = false;
|
2021-12-28 16:19:29 +01:00
|
|
|
|
2022-08-27 03:03:02 +02:00
|
|
|
}
|