-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add modules and helper scripts for working with tfgrid/zos micr…
…ovms nixosModule.zosVmDir add `config.system.build.zosVmDir` which results in a directory that contains a rootfs, (uncompressed) kernel and initramfs. the resulting file structure can either be booted using virtiofsd + cloud-hypervisor or published to an s3 endpoint for consumption on tfgrid zos-vm-*: scripts to build, publish and local-boot zos microvm system images try to get nixos-rebuild working in the VM tfgrid-devnet-vm0: add iperf3 and man experiment with grub make bootloader install a noop nixos insists on having some bootloader but we don't need one for zos microvms secrets(nomad): add tfgrid-devnet-vm0 feat(secrets): re-encrypt nomad keys feat(nixos/modules): add nomad-client feat(tfgrid-devnet-vm0): enable nomad-client try out external bootloader hook feat: add initial nixos-rebuild-helper mostly for dev work as of now; may be removed or refactored into a system service later feat(flake): bump rfs feat(tfgrid): split into base and devnet-vm0 profiles and install kernel/initrd to rootfs feat(tfgrid-devnet-vm0/sops): add age.key path and pregeneated age key
- Loading branch information
Showing
19 changed files
with
1,160 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.minio/ | ||
result* | ||
.decrypted~keys.yaml | ||
.storage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ stdenv | ||
, closureInfo | ||
, pixz | ||
|
||
, # The files and directories to be placed in the directory. | ||
# This is a list of attribute sets {source, target} where `source' | ||
# is the file system object (regular file or directory) to be | ||
# grafted in the file system at path `target'. | ||
contents | ||
|
||
, # In addition to `contents', the closure of the store paths listed | ||
# in `packages' are also placed in the Nix store of the tarball. This is | ||
# a list of attribute sets {object, symlink} where `object' if a | ||
# store path whose closure will be copied, and `symlink' is a | ||
# symlink to `object' that will be added to the tarball. | ||
storeContents ? [ ] | ||
|
||
# Extra commands to be executed before archiving files | ||
, extraCommands ? "" | ||
|
||
# extra inputs | ||
, extraInputs ? [ ] | ||
}: | ||
|
||
let | ||
symlinks = map (x: x.symlink) storeContents; | ||
objects = map (x: x.object) storeContents; | ||
in | ||
|
||
stdenv.mkDerivation { | ||
name = "system-directory"; | ||
builder = ./make-system-directory.sh; | ||
nativeBuildInputs = extraInputs; | ||
|
||
inherit extraCommands; | ||
|
||
# !!! should use XML. | ||
sources = map (x: x.source) contents; | ||
targets = map (x: x.target) contents; | ||
|
||
# !!! should use XML. | ||
inherit symlinks objects; | ||
|
||
closureInfo = closureInfo { | ||
rootPaths = objects; | ||
}; | ||
} |
Oops, something went wrong.