Brings native understanding of Nix packages to containerd
MIT License
Bot releases are visible (Hide)
Welcome to the v0.2.0 release of nix-snapshotter!
nix run .#vm
and nix run .#vm-rootless
v1.27.9+k3s1
with patches to enable embedded nix-snapshotter
Services preload-containerd
& preload-containerd.rootless
:
config.services.preload-containerd = {
enable = true;
targets = [{
archives = [ pkgs.nix-snapshotter.buildImage { /* ... */ } ];
namespace = "k8s.io";
address = "/run/k3s/containerd/containerd.sock";
}];
};
New options for k3s
& new service k3s.rootless
:
config.services.k3s = {
enable = true;
# Sets the snapshotter for embedded containerd.
snapshotter = "nix";
# Sets KUBECONFIG env var to point to k3s.
setKubeConfig = true;
# Sets CONTAINERD_* env vars to point to k3s embedded containerd.
setEmbeddedContainerd = true;
}
New options for containerd
& containerd.rootless
:
config.virtualisation.containerd = {
enable = true;
# Enable integration with nix-snapshotter.
nixSnapshotterIntegration = true;
# Set the CONTAINERD_* env vars, but also set automatically by
# `nixSnapshotterIntegration` or by `services.k3s.setEmbeddedContainerd`.
setAddress = "/run/containerd/containerd.sock";
setNamespace = "default";
setSnapshotter = "nix";
}
New option only for NixOS module containerd
:
config.virtualisation.containerd = {
enable = true;
# Enable integration with k3s. This is mutually exclusive with setting
# `services.k3s.snapshotter` and `services.k3s.setEmbeddedContainerd`.
k3sIntegration = true;
};
Removed options.services.nix-snapshotter.setContainerdSnapshotter
# v0.1.x
services.nix-snapshotter = {
enable = true;
setContainerdSnapshotter = true;
};
# v0.2.0 (same for rootless)
virtualisation.containerd = {
enable = true;
nixSnapshotterIntegration = true;
};
services.nix-snapshotter = {
enable = true;
};
Removed options.services.nix-snapshotter.preloadContainerdImages
# v0.1.x
services.nix-snapshotter = {
enable = true;
preloadContainerdImages = [ pkgs.nix-snapshotter.buildImage { /* ... */ } ];
};
# v0.2.0 (same for rootless)
virtualisation.containerd = {
enable = true;
nixSnapshotterIntegration = true;
}
services.nix-snapshotter = {
enable = true;
};
services.preload-containerd = {
targets = [{
archives = [ pkgs.nix-snapshotter.buildImage { /* ... */ } ];
}];
};
Published by elpdt852 8 months ago
Welcome to the v0.1.2 release of nix-snapshotter!
pkg/plugin
package to compile containerd with builtin support for nix-snapshotter (#112 )external_builder
to provide an external executable as a NixBuilder
(#113)Please try it out and report any issues at:
https://github.com/pdtpartners/nix-snapshotter/issues
Published by elpdt852 9 months ago
Welcome to the v0.1.1 release of nix-snapshotter!
nix build
to substitute missing store paths (#107)image-service-endpoint
to resolve nix:0/<nix-store-path>
image references (#110)Please try it out and report any issues at:
https://github.com/pdtpartners/nix-snapshotter/issues
Published by elpdt852 about 1 year ago
Welcome to the v0.1.0 release of nix-snapshotter!
This is the first public release of nix-snapshotter. Please try it out and report any issues at:
https://github.com/pdtpartners/nix-snapshotter/issues