Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,19 @@ Yes! for example with a config like this:
{
inputs.nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz";

outputs = { nixpkgs, ... }: {
nixosConfigurations.my-system = nixpkgs.lib.nixosSystem {
modules = [
{ modulesPath, ... }:
imports = [ "${modulesPath}/virtualisation/amazon-image.nix" ];
virtualisation.diskSize = "auto"; # or gigabytes. default is 3 * 1024
nixpkgs.hostPlatform = "x86_64-linux";
services.nginx.enable = true;
}
];
outputs =
{ nixpkgs, ... }:
{
nixosConfigurations.my-system = nixpkgs.lib.nixosSystem {
modules = [
{
virtualisation.diskSize = "auto"; # or gigabytes. default is 3 * 1024
nixpkgs.hostPlatform = "x86_64-linux";
services.nginx.enable = true;
}
];
};
};
};
}
```

Expand Down
18 changes: 7 additions & 11 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,13 @@
# NOTE: Github Actions doesn't support kvm on arm64 builds
nixosConfigurations.x86_64-linux = nixpkgs.lib.nixosSystem {
modules = [
(
{ modulesPath, ... }:
{
imports = [ "${modulesPath}/virtualisation/amazon-image.nix" ];
image.modules.amazon = {
amazonImage.format = "raw";
};
nixpkgs.hostPlatform = "x86_64-linux";
system.stateVersion = "26.05";
}
)
{
image.modules.amazon = {
amazonImage.format = "raw";
};
nixpkgs.hostPlatform = "x86_64-linux";
system.stateVersion = "26.05";
}
];
};

Expand Down
Loading