test out arrow on aws

This commit is contained in:
Noah Masur
2024-05-04 23:05:55 -04:00
parent c0356cab62
commit 8f0f7911b0
10 changed files with 341 additions and 98 deletions

View File

@ -1,15 +1,9 @@
{ ... }:
{
config = {
# AWS settings require this
permitRootLogin = "prohibit-password";
# AWS settings require this
permitRootLogin = "prohibit-password";
# Make sure disk size is large enough
# https://github.com/nix-community/nixos-generators/issues/150
formatConfigs.amazon =
{ config, ... }:
{
amazonImage.sizeMB = 16 * 1024;
};
};
# Make sure disk size is large enough
# https://github.com/nix-community/nixos-generators/issues/150
amazonImage.sizeMB = 16 * 1024;
}

View File

@ -1,12 +1,7 @@
{
config,
pkgs,
lib,
...
}:
{ config, lib, ... }:
{
# Enable fstrim, which tracks free space on SSDs for garbage collection
# More info: https://www.reddit.com/r/NixOS/comments/rbzhb1/if_you_have_a_ssd_dont_forget_to_enable_fstrim/
services.fstrim.enable = true;
services.fstrim.enable = lib.mkIf config.physical true;
}

View File

@ -29,7 +29,7 @@
GatewayPorts = "no";
X11Forwarding = false;
PasswordAuthentication = false;
PermitRootLogin = config.permitRootLogin;
PermitRootLogin = lib.mkDefault config.permitRootLogin;
};
};