Created
November 17, 2019 22:14
-
-
Save lordcirth/e655d791ab6b0209f25a6d222f007e09 to your computer and use it in GitHub Desktop.
building NixOS image
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
[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 |
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
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