2023-12-24 17:14:10 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[
|
|
|
|
../../base.nix
|
|
|
|
../../common/metrics-exporters.nix
|
|
|
|
./hardware-configuration.nix
|
2023-12-25 00:06:26 +01:00
|
|
|
|
|
|
|
./services/nginx.nix
|
2023-12-25 01:37:05 +01:00
|
|
|
./services/pihole.nix
|
2023-12-29 15:56:47 +01:00
|
|
|
./services/postgresql.nix
|
|
|
|
|
|
|
|
./services/flame.nix
|
2023-12-26 11:45:12 +01:00
|
|
|
./services/gitea.nix
|
2023-12-29 15:56:47 +01:00
|
|
|
./services/hedgedoc.nix
|
|
|
|
./services/matrix-synapse.nix
|
2023-12-26 11:45:12 +01:00
|
|
|
./services/metrics
|
2023-12-29 15:56:47 +01:00
|
|
|
./services/minecraft.nix
|
|
|
|
./services/vaultwarden.nix
|
2023-12-24 17:14:10 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "defiant";
|
|
|
|
defaultGateway = "192.168.10.1";
|
2023-12-24 17:40:47 +01:00
|
|
|
interfaces.enp3s0.ipv4 = {
|
2023-12-24 17:14:10 +01:00
|
|
|
addresses = [
|
2023-12-25 00:06:26 +01:00
|
|
|
{ address = "192.168.10.175"; prefixLength = 24; } # Main IP for defiant, internal
|
2023-12-24 17:14:10 +01:00
|
|
|
];
|
|
|
|
};
|
|
|
|
hostId = "8e84f235";
|
|
|
|
};
|
|
|
|
|
2023-12-25 00:06:26 +01:00
|
|
|
sops.defaultSopsFile = ../../secrets/defiant/defiant.yaml;
|
2023-12-24 17:14:10 +01:00
|
|
|
|
|
|
|
environment.variables = { EDITOR = "vim"; };
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
zfs
|
|
|
|
];
|
|
|
|
|
2023-12-26 11:45:12 +01:00
|
|
|
boot = {
|
|
|
|
zfs.extraPools = [ "tank" ];
|
|
|
|
supportedFilesystems = [ "zfs" ];
|
|
|
|
kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
|
|
|
|
};
|
|
|
|
services.prometheus.exporters.zfs.enable = true;
|
|
|
|
|
2023-12-24 17:14:10 +01:00
|
|
|
virtualisation.docker.enable = true;
|
|
|
|
virtualisation.oci-containers.backend = "docker";
|
|
|
|
|
|
|
|
system.stateVersion = "23.11";
|
|
|
|
}
|
|
|
|
|