1
0
Fork 0
pvv-nixos-config/hosts/bicep/configuration.nix

40 lines
1.1 KiB
Nix
Raw Normal View History

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-05-18 15:40:13 +02:00
./services/mysql.nix
2023-03-26 01:09:44 +01: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.version = 2;
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
};
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";
}