dotfiles/hosts/aws/default.nix

26 lines
735 B
Nix
Raw Permalink Normal View History

{ self, system, ... }:
self.inputs.nixos-generators.nixosGenerate {
2022-09-20 04:01:45 +00:00
inherit system;
format = "amazon";
modules = [
self.inputs.home-manager.nixosModules.home-manager
self.nixosModules.globals
self.nixosModules.common
self.nixosModules.nixos
2022-09-20 04:01:45 +00:00
{
networking.hostName = "sheep";
gui.enable = false;
theme.colors = (import ../../colorscheme/gruvbox).dark;
2022-10-18 12:21:22 +00:00
passwordHash = null;
2022-09-20 11:50:45 +00:00
publicKey =
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB+AbmjGEwITk5CK9y7+Rg27Fokgj9QEjgc9wST6MA3s";
# AWS settings require this
permitRootLogin = "prohibit-password";
2022-09-20 04:01:45 +00:00
}
] ++ [
# Required to fix diskSize errors during build
({ ... }: { amazonImage.sizeMB = 16 * 1024; })
2022-09-20 04:01:45 +00:00
];
}