Skip to content

Commit 95de7c4

Browse files
committed
Update amazon install info
1 parent 631f42d commit 95de7c4

File tree

10 files changed

+24
-126
lines changed

10 files changed

+24
-126
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# strykeforce.org
22

3+
## Installation
4+
5+
Find a recent [NixOS AMI](https://nixos.org). Use a x86_64 (t3, not t2) instance type to enable serial console. Install SSH public key during installation and log in using public IP.
6+
7+
```sh
8+
nixos-rebuild --flake .#venus --target-host root@venus boot
9+
```
10+
311
## Copy or restore production data
412

513
To restore database from backup, assumes `rclone` and `aws` credential files in place:

docs/README.md

Lines changed: 0 additions & 40 deletions
This file was deleted.

docs/amazon/container.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/amazon/role-policy.json

Lines changed: 0 additions & 37 deletions
This file was deleted.

docs/amazon/trust-policy.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

nix/hosts/mercury/configuration.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
];
1515

1616
networking.hostName = "mercury";
17+
nixpkgs.hostPlatform = "x86_64-linux";
1718

1819
age.secrets.stryker_website_secrets = {
1920
file = ./strykeforce_website_secrets.age;

nix/hosts/venus/configuration.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
flake.modules.nixos.server
1111
];
1212

13+
nixpkgs.hostPlatform = "x86_64-linux";
1314
networking.hostName = "venus";
1415

1516
system.stateVersion = "24.11";

nix/modules/nixos/hardware-amazon-ec2.nix

Lines changed: 0 additions & 10 deletions
This file was deleted.

nix/modules/nixos/server.nix

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,27 @@
11
{
22
flake,
33
inputs,
4+
modulesPath,
5+
pkgs,
46
...
57
}:
8+
let
9+
inherit (inputs.nixpkgs.lib) mkForce;
10+
in
611
{
712
imports = [
8-
flake.modules.nixos.hardware-amazon-ec2
13+
inputs.srvos.nixosModules.hardware-amazon
914
inputs.srvos.nixosModules.server
1015
];
1116
services.getty.autologinUser = "root";
17+
security.sudo.execWheelOnly = mkForce false;
18+
services.cloud-init.enable = false;
19+
20+
environment.systemPackages = with pkgs; [
21+
file
22+
ghostty.terminfo
23+
mailutils
24+
];
1225

1326
nix.settings = {
1427
substituters = [

nix/packages/amazon.nix

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)