Commit Graph

27 Commits

Author SHA1 Message Date
Andrey Butirsky
80f8f3fe0f
nixos-generate: fix "specialArgs: command not found"
$ nixos-generate --help
/nix/store/...-nixos-generate/bin/.nixos-generate-wrapped: line 25: specialArgs: command not found
Usage: /nix/store/...-nixos-generate/bin/.nixos-generate-wrapped [options]
...
2024-04-22 01:37:04 +03:00
Jörg Thalheim
7998cdd448 nixos-generate: switch to new nix build command for better logs
nix-build doesn't print any logs when performs derivation looks up,
which might look like the build stalled.
2024-03-28 12:24:16 +01:00
mrtnvgr
2c9562e762 feat: add --special-arg option 2024-02-29 17:12:43 +00:00
James Alseth
4c7b914d1f Add disk-size argument
Many formats generate an image only large enough for the generated NixOS
config. This quickly runs out of space for NixOS servers that are updated
over time rather than being redeployed with fresh images.

Signed-off-by: James Alseth <james@jalseth.me>
2024-02-11 11:47:50 -08:00
lassulus
af3d3a7538 rename filename to fileExtension 2023-07-22 16:20:50 +02:00
lassulus
efb2d33d4f formats *: set filename to the fileending 2023-07-21 14:58:38 +02:00
Simon Elsbrock
05c43eb41c
docs: fix wrong sentence for -o 2022-05-17 22:47:23 +02:00
Matt Schreiber
3cf3032e81
Resolve links when finding output filename
by s/-type/-xtype/ in the "find" invocation.  Now nixos-generate prints
both regular files and symlinks to regular files (like "run-nixos-vm"
for the "vm" and "vm-nogui" formats).
2022-05-13 11:44:53 -04:00
contrun
cb3592d25a
update help document about the vm formats to run 2021-10-29 14:25:10 +08:00
Mykyta Ursol
b95c73cfcc flake info subcommand was renamed to metadata 2021-03-31 00:35:44 +03:00
Jörg Thalheim
93c3100f95
pass --option to nix-build 2021-02-10 08:57:20 +01:00
jD91mZM2
9a8e56a767
Implement support for flakes 2020-10-23 18:16:09 +02:00
jD91mZM2
f8b23a0dd6
Create flake.nix 2020-10-23 16:48:17 +02:00
zimbatm
65d3bd489f
fix #70 2020-09-12 21:01:32 +02:00
Maciej Krüger
78a69659c2 feat: add outlink option 2020-07-30 12:53:37 +02:00
lassulus
d72adc1a0a add filename option 2020-05-22 21:14:01 +02:00
zimbatm
942232e300 nixos-generators: add --show-trace option
This flag is available on all nix-related commands. Migth as well have
it too!
2019-12-20 08:30:09 +01:00
Lassulus
b0e9078158 ignore nix-support directory when finding filename (#44) 2019-10-08 23:06:45 +00:00
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