21 lines
402 B
Nix
Raw Normal View History

2025-02-14 15:36:54 -05:00
{ config, lib, ... }:
2025-01-20 22:35:40 -05:00
let
cfg = config.nmasur.profiles.aws;
in
{
2025-02-14 15:36:54 -05:00
options.nmasur.profiles.aws.enable = lib.mkEnableOption "AWS EC2";
2025-01-20 22:35:40 -05:00
config = lib.mkIf cfg.enable {
# AWS settings require this
permitRootLogin = "prohibit-password";
# Make sure disk size is large enough
# https://github.com/nix-community/nixos-generators/issues/150
amazonImage.sizeMB = 16 * 1024;
};
}