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