2023-10-03 01:25:33 +02:00
|
|
|
{ config, pkgs, lib, modulesPath, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[
|
|
|
|
(modulesPath + "/virtualisation/proxmox-lxc.nix")
|
|
|
|
../../base.nix
|
|
|
|
../../common/metrics-exporters.nix
|
2023-10-05 22:14:29 +02:00
|
|
|
|
2023-10-05 23:44:58 +02:00
|
|
|
./services/nginx.nix
|
2023-10-05 22:14:29 +02:00
|
|
|
./services/postgresql.nix
|
2023-10-06 00:19:04 +02:00
|
|
|
./services/hedgedoc.nix
|
2023-10-05 23:44:58 +02:00
|
|
|
./services/flame.nix
|
2023-10-03 01:25:33 +02:00
|
|
|
];
|
|
|
|
|
2023-10-05 22:05:09 +02:00
|
|
|
# Boot and console is handled by proxmoxLXC.
|
2023-10-03 01:25:33 +02:00
|
|
|
boot.loader.systemd-boot.enable = lib.mkForce false; # Enabled in base.nix, forced off here.
|
2023-10-05 22:05:09 +02:00
|
|
|
|
|
|
|
# Override proxmox networking
|
|
|
|
proxmoxLXC.manageNetwork = true;
|
|
|
|
networking = {
|
|
|
|
hostName = "sarek";
|
|
|
|
defaultGateway = "192.168.10.1";
|
|
|
|
interfaces."eth0".ipv4 = {
|
|
|
|
addresses = [
|
|
|
|
{ address = "192.168.10.181"; prefixLength = 24; }
|
|
|
|
];
|
|
|
|
};
|
|
|
|
hostId = "15dd36bc";
|
|
|
|
};
|
2023-10-03 01:25:33 +02:00
|
|
|
|
2023-10-05 23:44:58 +02:00
|
|
|
sops.defaultSopsFile = ../../secrets/sarek/sarek.yaml;
|
2023-10-03 01:25:33 +02:00
|
|
|
|
2023-10-05 23:44:58 +02:00
|
|
|
virtualisation.docker.enable = true;
|
|
|
|
virtualisation.oci-containers.backend = "docker";
|
2023-10-03 01:25:33 +02:00
|
|
|
|
|
|
|
system.stateVersion = "23.05";
|
|
|
|
}
|
|
|
|
|