-
-
Save edef1c/fed08afb41a47ec9bfed2f2bab0356e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
imports = [ <nixpkgs/nixos/modules/virtualisation/amazon-image.nix> ]; | |
environment.etc."hello".text = "hello, world!"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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