Skip to content

Commit

Permalink
Merge pull request #840 from adamcstephens/nixos/incus-specific
Browse files Browse the repository at this point in the history
nixos: switch unstable to incus-specific image
  • Loading branch information
stgraber authored Aug 16, 2024
2 parents 91c00b9 + 81f18ab commit e83cc88
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
21 changes: 21 additions & 0 deletions images/nixos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,24 @@ files:
{
networking.hostName = "{{ instance.name }}";
}
releases:
- 24.05

- name: conf-hostname
path: /etc/nixos/incus.nix
generator: template
content: |-
{
lib,
config,
pkgs,
...
}:
# WARNING: THIS CONFIGURATION IS AUTOGENERATED AND WILL BE OVERWRITTEN AUTOMATICALLY
{
networking.hostName = "{{ instance.name }}";
}
releases:
- unstable
6 changes: 4 additions & 2 deletions jenkins/jobs/image-nixos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
type: user-defined
values:
- unstable
- 23.11
- 24.05

- axis:
Expand All @@ -39,8 +38,11 @@
RELEASE=${release}
[ "${RELEASE}" = "unstable" ] && JOBSET="trunk-combined" || JOBSET="release-${RELEASE}"
# remove lxd image when 24.11 is released
[ "${RELEASE}" = "unstable" ] && HYDRA_IMAGE="incusVirtualMachineImage" || HYDRA_IMAGE="lxdVirtualMachineImage"
# download a pre-built VM image
curl --location --output ${WORKSPACE}/disk.qcow2 https://hydra.nixos.org/job/nixos/${JOBSET}/nixos.lxdVirtualMachineImage.${ARCH}-linux/latest/download-by-type/file/qcow2-image
curl --location --output ${WORKSPACE}/disk.qcow2 https://hydra.nixos.org/job/nixos/${JOBSET}/nixos.${HYDRA_IMAGE}.${ARCH}-linux/latest/download-by-type/file/qcow2-image
exec sudo /lxc-ci/bin/build-distro /lxc-ci/images/nixos.yaml \
${INCUS_ARCHITECTURE} container 14400 ${WORKSPACE} \
Expand Down

0 comments on commit e83cc88

Please sign in to comment.