2024-11-21 18:39:34 +01:00
|
|
|
# TODO: revamp to use the same framework as the other VMs
|
2024-11-21 19:44:43 +01:00
|
|
|
{ pkgs, ... }:
|
2024-11-21 18:39:34 +01:00
|
|
|
|
2024-11-21 18:40:50 +01:00
|
|
|
let
|
|
|
|
address = "129.199.146.101";
|
2024-11-21 18:39:34 +01:00
|
|
|
in
|
|
|
|
{
|
|
|
|
imports = [
|
2024-11-21 18:59:21 +01:00
|
|
|
./_hardware-configuration.nix
|
2024-11-21 18:39:34 +01:00
|
|
|
|
|
|
|
# NOTE: For now, only deploy the bare minimum
|
|
|
|
./immich.nix
|
2024-11-21 19:38:29 +01:00
|
|
|
./nginx.nix
|
|
|
|
./photoprism.nix
|
2024-11-21 18:39:34 +01:00
|
|
|
];
|
2024-11-21 19:02:40 +01:00
|
|
|
deployment.targetHost = address;
|
2024-11-21 18:39:34 +01:00
|
|
|
|
2024-11-21 18:41:54 +01:00
|
|
|
networking = {
|
2024-11-21 18:43:16 +01:00
|
|
|
firewall.allowedTCPPorts = [
|
|
|
|
22
|
|
|
|
80
|
|
|
|
443
|
|
|
|
8007
|
|
|
|
];
|
|
|
|
firewall.allowedUDPPorts = [ ];
|
|
|
|
useNetworkd = true;
|
2024-11-21 18:41:54 +01:00
|
|
|
};
|
|
|
|
|
2024-11-21 18:39:34 +01:00
|
|
|
time.timeZone = "Europe/Paris";
|
|
|
|
environment.systemPackages = with pkgs; [ neovim ];
|
|
|
|
users.users.root.openssh.authorizedKeys.keys = [
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDMBW7rTtfZL9wtrpCVgariKdpN60/VeAzXkh9w3MwbO julien@enigma"
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKrijwPlb7KQkYPLznMPVzPPT69cLzhEsJzZi9tmxzTh cst1@x270"
|
|
|
|
];
|
|
|
|
|
|
|
|
security.acme.acceptTerms = true;
|
|
|
|
|
|
|
|
systemd.network = {
|
|
|
|
config.routeTables = {
|
|
|
|
he = 100;
|
|
|
|
mwan = 110;
|
|
|
|
};
|
|
|
|
networks = {
|
|
|
|
"10-ens18" = {
|
|
|
|
name = "ens18";
|
|
|
|
|
|
|
|
networkConfig = {
|
|
|
|
Description = "ENS uplink";
|
|
|
|
Address = [ "129.199.146.101/24" ];
|
|
|
|
Gateway = "129.199.146.254";
|
|
|
|
LLDP = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|