dotfiles/hosts/aws/default.nix

42 lines
919 B
Nix
Raw Normal View History

2024-04-13 13:03:44 +00:00
{
inputs,
system,
globals,
overlays,
...
}:
2023-07-02 03:00:17 +00:00
inputs.nixos-generators.nixosGenerate {
2022-09-20 04:01:45 +00:00
inherit system;
format = "amazon";
2024-04-13 13:03:44 +00:00
modules =
[
globals
inputs.home-manager.nixosModules.home-manager
{
nixpkgs.overlays = overlays;
networking.hostName = "sheep";
gui.enable = false;
theme.colors = (import ../../colorscheme/gruvbox).dark;
passwordHash = null;
publicKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB+AbmjGEwITk5CK9y7+Rg27Fokgj9QEjgc9wST6MA3s personal"
];
# AWS settings require this
permitRootLogin = "prohibit-password";
}
../../modules/common
../../modules/nixos
../../modules/nixos/services/sshd.nix
]
++ [
# Required to fix diskSize errors during build
(
{ ... }:
{
amazonImage.sizeMB = 16 * 1024;
}
)
];
2022-09-20 04:01:45 +00:00
}