clan-infra/targets/web01/configuration.nix

14 lines
316 B
Nix
Raw Normal View History

2023-07-05 09:13:05 +00:00
{ self, ... }:
let
2023-07-04 14:43:31 +00:00
nixosVars = builtins.fromJSON (builtins.readFile ./nixos-vars.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
2023-07-04 14:43:31 +00:00
self.nixosModules.hcloud
];
2023-07-05 15:27:07 +00:00
sops.defaultSopsFile = ./secrets.yaml;
2023-07-04 14:43:31 +00:00
users.users.root.openssh.authorizedKeys.keys = nixosVars.ssh_keys;
system.stateVersion = "23.05";
}