Commit Graph

9 Commits

Author SHA1 Message Date
zimbatm
e6578895b5
add -I key=value option
Allow to inject other NIX_PATH search values like nixpkgs.
2019-08-19 16:06:30 +02:00
zimbatm
b050b7651b
rename var format to format_path
Just for consistency's sake
2019-08-19 15:58:31 +02:00
Ingolf Wanger
223d5c0579 nix-build: add --cores parameter 2019-03-22 22:57:14 +01:00
zimbatm
0cce7924f1 Cleanup (#17)
* rename eval-format.nix to nixos-generate.nix

Make it clear that it's meant to be used by the nixos-generate script

* rename config.nix to configuration.nix

Bring the name closer to /etc/nixos/configuration.nix

* fix the NIXOS_CONFIG

this is the env name that nixos-rebuild uses

* use -I to load the configuration and format

This has a nice side-effect of allowing URLs as configuration

* add Travis CI

* cleanSource

* gitignore nix result files

* use modulesPath everywhere

this makes sure that the passed pkgs in nixos-generate.nix is the same
one we use to load these other modules

* use toString to avoid evaluation error
2019-01-31 23:06:29 +01:00
lassulus
942930d595 find runner in /bin of output 2019-01-22 07:38:54 +01:00
lassulus
dd1faf4a14 use realpath to allow relative paths 2019-01-20 21:11:45 +01:00
lassulus
ca7df9db1e add nix-shell shebang for jq dependency 2019-01-20 21:11:45 +01:00
zimbatm
7dba49affb
add option to specify the target system
This could be useful if the machine has remote builders setup that
support the target system.
2019-01-17 19:41:50 +01:00
zimbatm
93e10d0aea central command (#8)
* WIP: eval target

* rename nixos-build to nixos-generate

* rename target to format

* allow to pass arbitrary format paths

* add --help option

* add --list option

* port the rest of the formats

* add short options

* be more precise with the file selection

* use new trick I learned

* support the --run option

for the no-gui version:

    ./nixos-generate --run -f vm-no-gui

* document

* fixup! port the rest of the formats

* fix kexec-bundle
2019-01-17 15:18:00 +01:00