2023-03-26 01:09:44 +01:00
|
|
|
{ pkgs, values, ... }:
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
|
|
|
../../base.nix
|
|
|
|
|
|
|
|
./services/postgres.nix
|
2023-03-26 04:21:03 +02:00
|
|
|
./services/jokum.nix
|
2023-04-23 05:12:47 +02:00
|
|
|
./services/jackson.nix
|
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";
|
|
|
|
address = with values.hosts.bicep; [ (ipv4 + "/25") (ipv6 + "/64") ];
|
|
|
|
};
|
2023-04-07 04:53:36 +02:00
|
|
|
systemd.network.wait-online = {
|
|
|
|
ignoredInterfaces = [ "enp6s0f1" ];
|
|
|
|
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";
|
|
|
|
}
|