nixos-config/hosts/defiant/configuration.nix

39 lines
807 B
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
./services/postgresql.nix
./services/nginx.nix
./services/matrix-synapse.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
];
virtualisation.docker.enable = true;
virtualisation.oci-containers.backend = "docker";
system.stateVersion = "23.11";
}