Philip Taron
7e454277c3
openstack-image: use pkgs.stdenv.hostPlatform.system instead of deprecated pkgs.system
...
pkgs.system is a deprecated alias that doesn't exist when
allowAliases = false, causing evaluation failures in nixpkgs-review.
2026-03-24 18:40:48 -07:00
Wolfgang Walther
5a0711127c
treewide: run nixfmt 1.0.0
2025-07-24 13:55:40 +02:00
phaer
5aba7c7131
openstack-image-zfs: drop ".root" suffix in generated image name
...
hydra-build-products is automatically updated with the right name, as
is image-info.json.
This breaks hardcoded uses of the filename, but ensures that all the
other outputs are consistent and image.filePath is correct
2025-07-18 11:12:09 -07:00
Silvan Mosberger
374e6bcc40
treewide: Format all Nix files
...
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:
nix-build ci -A fmt.check
This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153 )
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166 ).
This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537 ).
Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](https://github.com/NixOS/nixpkgs/tree/8616af08d915377bd930395f3b700a0e93d08728/maintainers/scripts/auto-rebase ).
If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/ ) by
pinging @NixOS/nix-formatting.
2025-04-01 20:10:43 +02:00
phaer
53e68e04f2
openstack-image-zfs: use system.build.image
2024-12-16 15:35:21 +01:00
phaer
e04d4cc0ea
openstack-image: use system.build.image
2024-12-16 15:35:21 +01:00
phaer
c6da9ef32d
modules/virtualisation: add unified diskSize opt
...
See https://github.com/NixOS/nixpkgs/pull/339535 and https://github.com/NixOS/nixpkgs/pull/341058
2024-10-27 12:28:37 +01:00
phaer
88b285c01d
nixos/virtualisation: format image-related files
2024-10-18 13:32:50 +02:00
Martin Weinelt
4cec81a995
Revert "modules/virtualisation: add shared options, merge various diskSize options" ( #340894 )
...
Breaks evaluation of all nixos tests, and is therefore a channel blocker.
2024-09-10 03:12:55 +02:00
phaer
52561c65a2
openstack-image-zfs: increase build-time RAM
2024-09-05 15:56:25 +02:00
phaer
db8d63ba70
openstack-image-zfs: sizeMB -> virt[...].diskSize
2024-09-05 15:56:25 +02:00
phaer
04fadac429
run nixfmt-rfc-style
2024-09-05 15:56:22 +02:00
stuebinm
6afb255d97
nixos: remove all uses of lib.mdDoc
...
these changes were generated with nixq 0.0.2, by running
nixq ">> lib.mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix
nixq ">> mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix
nixq ">> Inherit >> mdDoc[remove]" --batchmode nixos/**.nix
two mentions of the mdDoc function remain in nixos/, both of which
are inside of comments.
Since lib.mdDoc is already defined as just id, this commit is a no-op as
far as Nix (and the built manual) is concerned.
2024-04-13 10:07:35 -07:00
Sirio Balmelli
eac98ed50e
openstack-image-zfs: add 'ramMB' option to configure build VM memory
...
Increase 'ramMB' to avoid OOM errors when building images.
Signed-off-by: Sirio Balmelli <sirio@b-ad.ch >
2023-10-31 08:28:45 +01:00
Raito Bezarius
b69534e072
maintainers/scripts/openstack/openstack-image-zfs: use qemu_kvm (host arch) instead of qemu (all arches)
2023-04-28 23:51:24 +02:00
pennae
ef176dcf7e
nixos/*: automatically convert option descriptions
...
conversions were done using https://github.com/pennae/nix-doc-munge
using (probably) rev f34e145 running
nix-doc-munge nixos/**/*.nix
nix-doc-munge --import nixos/**/*.nix
the tool ensures that only changes that could affect the generated
manual *but don't* are committed, other changes require manual review
and are discarded.
2022-08-31 16:32:53 +02:00
Graham Christensen
555bc5335b
openstack-image-zfs: start copying the channel now that we've mostly got the expressions down
2022-04-07 15:28:28 -04:00
Graham Christensen
b4c495aeff
openstack-image-zfs: make the generated configuration.nix valid
...
Drops the wrong expandOnBoot option (defaults to all) and mark ZFS as enabled.
2022-04-07 15:28:28 -04:00
Graham Christensen
9e3dab7d2e
openstack-image-zfs: build a single-image ZFS root
2022-04-07 15:28:28 -04:00
Graham Christensen
1c0b76b5c4
openstack-image-zfs: don't support vpc type, default to qcow2
2022-04-07 15:28:28 -04:00
Graham Christensen
b8fe792394
openstack-image-zfs: init
2022-04-07 15:28:27 -04:00
Graham Christensen
e9f015480c
openstack-image: make it easy to disable copying the channel to improve iteration time
2022-04-07 15:28:27 -04:00
Graham Christensen
b3dfff282b
openstack-image: minor cleanups
...
Format and remove unnecessary `with lib;`.
2022-04-07 15:28:27 -04:00
lassulus
5aa4273e4f
treewide: use auto diskSize for make-disk-image
...
(cherry picked from commit f3aa040bcb )
2021-04-24 14:49:07 -04:00
Luke Granger-Brown
4fb91cbafe
Revert "treewide: use auto diskSize for make-disk-image"
...
This reverts commit f3aa040bcb .
2021-04-24 02:38:36 +00:00
lassulus
f3aa040bcb
treewide: use auto diskSize for make-disk-image
2021-04-22 19:52:49 +02:00
Antoine Eiche
d190b204f0
Rename novaImage to openstackImage
...
People don't necessary know `nova` is related to Openstack (it is a
component of Openstack). So, it is more explicit to call it
`openstackImage`.
2019-02-11 20:58:44 +01:00
lewo
3a377e26b2
nixos/nova-image: cleanup image builders ( #29242 )
...
There are currently two ways to build Openstack image. This just picks
best of both, to keep only one!
- Image is resizable
- Cloudinit is enable
- Password authentication is disable by default
- Use the same layer than other image builders (ec2, gce...)
2017-09-11 17:33:33 +01:00
Antoine Eiche
dec7ecbbbc
nova-image: refactoring
...
The nova image configuration is separated from the image build.
2017-02-24 22:17:52 +01:00