2023-03-26 01:09:44 +01:00
|
|
|
{ pkgs, values, ... }:
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
|
|
|
../../base.nix
|
2023-05-21 03:47:02 +02:00
|
|
|
../../misc/metrics-exporters.nix
|
2023-05-07 10:14:09 +02:00
|
|
|
./services/nginx
|
2023-03-26 01:09:44 +01:00
|
|
|
|
2023-08-12 02:55:20 +02:00
|
|
|
./acmeCert.nix
|
|
|
|
|
2024-08-24 22:48:40 +02:00
|
|
|
./services/calendar-bot.nix
|
|
|
|
./services/doorbell-bot.nix
|
2023-05-18 15:40:13 +02:00
|
|
|
./services/mysql.nix
|
2023-07-09 23:45:32 +02:00
|
|
|
./services/mysql.nix
|
2024-08-24 22:48:40 +02:00
|
|
|
./services/postgres.nix
|
2023-05-07 10:14:09 +02:00
|
|
|
|
|
|
|
./services/matrix
|
2023-03-26 01:09:44 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
sops.defaultSopsFile = ../../secrets/bicep/bicep.yaml;
|
|
|
|
sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
|
|
|
sops.age.keyFile = "/var/lib/sops-nix/key.txt";
|
|
|
|
sops.age.generateKey = true;
|
|
|
|
|
2023-03-26 04:21:03 +02:00
|
|
|
boot.loader.grub.enable = true;
|
|
|
|
boot.loader.grub.device = "/dev/disk/by-id/scsi-3600508b1001cb1a8751c137b30610682";
|
2023-03-26 01:09:44 +01:00
|
|
|
|
|
|
|
networking.hostName = "bicep";
|
|
|
|
|
2023-03-26 04:21:03 +02:00
|
|
|
systemd.network.networks."30-enp6s0f0" = values.defaultNetworkConfig // {
|
|
|
|
matchConfig.Name = "enp6s0f0";
|
2023-05-07 10:14:09 +02:00
|
|
|
address = with values.hosts.bicep; [ (ipv4 + "/25") (ipv6 + "/64") ]
|
|
|
|
++ (with values.services.turn; [ (ipv4 + "/25") (ipv6 + "/64") ]);
|
2023-03-26 04:21:03 +02:00
|
|
|
};
|
2023-04-07 04:53:36 +02:00
|
|
|
systemd.network.wait-online = {
|
|
|
|
anyInterface = true;
|
|
|
|
};
|
2023-03-26 01:09:44 +01:00
|
|
|
|
|
|
|
# Do not change, even during upgrades.
|
|
|
|
# See https://search.nixos.org/options?show=system.stateVersion
|
|
|
|
system.stateVersion = "22.11";
|
|
|
|
}
|