dotfiles/generators/aws/default.nix

32 lines
1.0 KiB
Nix
Raw Normal View History

2022-09-20 04:01:45 +00:00
{ nixpkgs, system, nixos-generators, home-manager, globals, ... }:
nixos-generators.nixosGenerate {
2022-09-20 04:01:45 +00:00
inherit system;
format = "amazon";
modules = [
2022-09-20 04:01:45 +00:00
home-manager.nixosModules.home-manager
{
user = globals.user;
fullName = globals.fullName;
dotfilesRepo = globals.dotfilesRepo;
gitName = globals.gitName;
gitEmail = globals.gitEmail;
2022-09-20 04:01:45 +00:00
networking.hostName = "sheep";
gui.enable = false;
colorscheme = (import ../modules/colorscheme/gruvbox);
2022-09-20 04:01:45 +00:00
passwordHash =
"$6$PZYiMGmJIIHAepTM$Wx5EqTQ5GApzXx58nvi8azh16pdxrN6Qrv1wunDlzveOgawitWzcIxuj76X9V868fsPi/NOIEO8yVXqwzS9UF.";
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
}
../hosts/common.nix
../modules/nixos
2022-09-20 11:50:45 +00:00
../modules/services/sshd.nix
] ++ [
# Required to fix diskSize errors during build
({ ... }: { amazonImage.sizeMB = 16 * 1024; })
2022-09-20 04:01:45 +00:00
];
}