mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-27 11:04:52 +00:00
2d10939285
closes #11
33 lines
900 B
Nix
33 lines
900 B
Nix
{ inputs, globals, ... }:
|
|
|
|
with inputs;
|
|
|
|
nixos-generators.nixosGenerate {
|
|
inherit system;
|
|
format = "amazon";
|
|
modules = [
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
user = globals.user;
|
|
fullName = globals.fullName;
|
|
dotfilesRepo = globals.dotfilesRepo;
|
|
gitName = globals.gitName;
|
|
gitEmail = globals.gitEmail;
|
|
networking.hostName = "sheep";
|
|
gui.enable = false;
|
|
colorscheme = (import ../modules/colorscheme/gruvbox);
|
|
passwordHash = null;
|
|
publicKey =
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB+AbmjGEwITk5CK9y7+Rg27Fokgj9QEjgc9wST6MA3s";
|
|
# AWS settings require this
|
|
permitRootLogin = "prohibit-password";
|
|
}
|
|
../../hosts/common.nix
|
|
../../modules/nixos
|
|
../../modules/services/sshd.nix
|
|
] ++ [
|
|
# Required to fix diskSize errors during build
|
|
({ ... }: { amazonImage.sizeMB = 16 * 1024; })
|
|
];
|
|
}
|