clan-infra/targets/web01/configuration.nix

21 lines
660 B
Nix
Raw Normal View History

{ self, config, ... }:
2023-07-05 09:13:05 +00:00
let
admins = builtins.fromJSON (builtins.readFile ../admins/users.json);
2023-07-05 09:13:05 +00:00
in
{
2023-07-04 14:43:31 +00:00
imports = [
2023-07-04 15:23:29 +00:00
self.nixosModules.web01
self.nixosModules.hetzner-ex101
2023-07-04 14:43:31 +00:00
];
networking.hostName = "web01";
systemd.network.networks."10-uplink".networkConfig.Address = "2a01:4f9:3080:282a::1";
2023-07-05 15:27:07 +00:00
sops.defaultSopsFile = ./secrets.yaml;
users.users.root.openssh.authorizedKeys.keys = builtins.attrValues admins;
clan.networking.ipv4.address = "65.109.103.5";
clan.networking.ipv4.gateway = "65.109.103.1";
clan.networking.ipv6.address = config.systemd.network.networks."10-uplink".networkConfig.Address;
2023-07-04 14:43:31 +00:00
system.stateVersion = "23.05";
}