Commit Graph

12 Commits

Author SHA1 Message Date
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
DavHau
fb30cf1cbe reformat all files 2023-05-30 10:21:34 +02:00
David Arnold
1f311a13e1
fix: format module identity 2022-11-27 14:23:20 -05:00
Nathan Henrie
87f6494e9d
Another typo (#189)
* Another typo

* Re-fix typo
2022-11-19 17:45:15 +01:00
Nathan Henrie
3f53354a79
Fix typo 2022-11-18 09:46:22 -07:00
lassulus
41f3518bc1 nixos-generate: import format-module directly 2022-10-26 21:33:59 +02:00
David Arnold
20c21b9880
fix: uniquely identiy the format-module
this has the positive side effect that the nixos-generate
binary now also works on configurations
that already import one of the nixos modules

That means, we can use the same cli interface regardless if
the config was pre-produced or is produced by the cli on the fly

fix: #181
2022-10-23 16:07:04 -05:00
Parthiv Seetharaman
6cba3aef07 nixos-generate: use extendModules for flakes 2022-02-26 14:12:37 -08:00
Pacman99
afab4671b8 flake: export formats as nixosModules 2021-06-08 18:48:30 -07:00
jD91mZM2
9a8e56a767
Implement support for flakes 2020-10-23 18:16:09 +02:00
lassulus
d72adc1a0a add filename option 2020-05-22 21:14:01 +02: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