mirror of
https://github.com/nmasur/dotfiles
synced 2025-02-23 16:42:03 +00:00
21 lines
402 B
Nix
21 lines
402 B
Nix
{ config, lib, ... }:
|
|
|
|
let
|
|
cfg = config.nmasur.profiles.aws;
|
|
in
|
|
{
|
|
|
|
options.nmasur.profiles.aws.enable = lib.mkEnableOption "AWS EC2";
|
|
|
|
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;
|
|
|
|
};
|
|
}
|