| 1 | { inputs, ... }: |
| 2 | { |
| 3 | imports = [ |
| 4 | inputs.srvos.nixosModules.server |
| 5 | inputs.fast-nix-gc.nixosModules.default |
| 6 | ../../../modules/common.nix |
| 7 | ../../../modules/nspawn-test-containers.nix |
| 8 | ../common.nix |
| 9 | ./ofborg-config.nix |
| 10 | ]; |
| 11 | |
| 12 | services.fast-nix-gc = { |
| 13 | enable = true; |
| 14 | automatic = true; |
| 15 | dates = "hourly"; |
| 16 | ensureFree = "30%"; # some breathing room for zfs |
| 17 | keepRecent = "24h"; |
| 18 | }; |
| 19 | |
| 20 | # TODO wire up exporters |
| 21 | # TODO loki |
| 22 | |
| 23 | # Not part of the infra team |
| 24 | users.users.root.openssh.authorizedKeys.keys = [ |
| 25 | "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM35Bq87SBWrEcoDqrZFOXyAmV/PJrSSu3hl3TdVvo4C janne" |
| 26 | "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPK/3rYhlIzoPCsPK38PMdK1ivqPaJgUqWwRtmxdKZrO ✏️" |
| 27 | ]; |
| 28 | |
| 29 | nixpkgs.overlays = [ |
| 30 | (_self: super: { |
| 31 | ofborg = inputs.ofborg.packages.${super.stdenv.hostPlatform.system}.pkg; |
| 32 | }) |
| 33 | ]; |
| 34 | |
| 35 | systemd.targets.ofborg = { |
| 36 | description = "ofBorg target"; |
| 37 | wantedBy = [ "multi-user.target" ]; |
| 38 | }; |
| 39 | |
| 40 | deployment.tags = [ "ofborg" ]; |
| 41 | } |