Skip to content

Instantly share code, notes, and snippets.

@lordcirth
Created November 17, 2019 22:14
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 lordcirth/e655d791ab6b0209f25a6d222f007e09 to your computer and use it in GitHub Desktop.
Save lordcirth/e655d791ab6b0209f25a6d222f007e09 to your computer and use it in GitHub Desktop.
building NixOS image
[bob@nixos:~]$ nix-build laptop.nix -A config.system.build.laptop --show-trace
error: while evaluating anonymous function at /home/bob/nixpkgs/nixos/lib/make-disk-image.nix:1:1, called from /home/bob/laptop.nix:5:32:
value is a function while a set was expected
with import ./nixpkgs/lib;
with import ./nixpkgs/pkgs/top-level;
{
config.system.build.laptop = import ./nixpkgs/nixos/lib/make-disk-image.nix {
inherit lib config pkgs;
diskSize = 4096;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment