nixos-config/hosts/defiant/configuration.nix

61 lines
1.4 KiB
Nix
Raw Normal View History

2023-12-24 17:14:10 +01:00
{ config, pkgs, ... }:
{
imports =
[
../../base.nix
../../common/metrics-exporters.nix
./hardware-configuration.nix
2024-01-25 11:31:05 +01:00
# Infrastructure
2024-03-08 01:48:06 +01:00
./backup.nix
2024-01-25 11:31:05 +01:00
./libvirt.nix
./services/nginx.nix
./services/pihole.nix
2023-12-29 15:56:47 +01:00
./services/postgresql.nix
2024-01-25 11:31:05 +01:00
./services/wireguard.nix
2023-12-29 15:56:47 +01:00
2024-01-25 11:31:05 +01:00
# Services
2023-12-29 15:56:47 +01:00
./services/flame.nix
./services/gitea.nix
2023-12-29 15:56:47 +01:00
./services/hedgedoc.nix
2024-01-17 13:34:21 +01:00
./services/home-assistant.nix
2024-01-17 15:01:54 +01:00
./services/matrix
./services/metrics
2024-02-21 22:54:34 +01:00
./services/microbin.nix
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 = [
{ address = "192.168.10.175"; prefixLength = 24; } # Main IP for defiant, internal
2023-12-24 17:14:10 +01:00
];
};
hostId = "8e84f235";
};
sops.defaultSopsFile = ../../secrets/defiant/defiant.yaml;
2023-12-24 17:14:10 +01:00
environment.variables = { EDITOR = "vim"; };
environment.systemPackages = with pkgs; [
zfs
];
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";
}