Skip to content

Instantly share code, notes, and snippets.

@edef1c
Created July 23, 2019 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edef1c/fed08afb41a47ec9bfed2f2bab0356e4 to your computer and use it in GitHub Desktop.
Save edef1c/fed08afb41a47ec9bfed2f2bab0356e4 to your computer and use it in GitHub Desktop.
{
imports = [ <nixpkgs/nixos/modules/virtualisation/amazon-image.nix> ];
environment.etc."hello".text = "hello, world!";
}
let
nixos = import <nixpkgs/nixos/lib/eval-config.nix> {
system = "x86_64-linux";
modules = [ ./configuration.nix ];
};
image = import <nixpkgs/nixos/lib/make-disk-image.nix> {
inherit (nixos.pkgs) lib;
inherit (nixos) config pkgs;
diskSize = 2048;
format = "qcow2";
};
in image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment