andir / nixos-gpd-pocket

21 stars 4 forks source link

How to build the installer iso? #2

Open rbrewer123 opened 6 years ago

rbrewer123 commented 6 years ago

I'm new to nix and recently got nixos 17.09 running in a cloud instance, but I think I could learn much faster with nixos installed on my Pocket.

Unfortunately, I haven't figured out the right nix-build command to get an installer iso derived from your repo. Can you help? Any hints would be much appreciated.

rbrewer123 commented 6 years ago

This is the closest I've come to something that works:

$ cd nixos-gpd-pocket
$ nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=pocket-installer.nix
error: The option `networking.wireless.enable' has conflicting definitions, in `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/profiles/installation-device.nix' and `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/services/networking/networkmanager.nix'. 
(use ‘--show-trace’ to show detailed location information) 

Changing networking.wireless.enable to true or false in my configuration.nix and doing a nixos-rebuild switch prior to the nix-build above both result in the same error.

Thanks for any help.