8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
26 lines
631 B
Nix
26 lines
631 B
Nix
{ pkgs, ... }:
|
|
{ nixpkgs.config.packageOverrides = pkgs': {
|
|
hello-world-container = pkgs'.callPackage ./hello-world-container.nix { };
|
|
};
|
|
|
|
virtualisation.docker = {
|
|
enable = true;
|
|
package = pkgs.docker;
|
|
};
|
|
|
|
systemd.services.docker-load-fetchdocker-image = {
|
|
description = "Docker load hello-world-container";
|
|
wantedBy = [ "multi-user.target" ];
|
|
wants = [ "docker.service" ];
|
|
after = [ "docker.service" ];
|
|
|
|
script = ''
|
|
${pkgs.hello-world-container}/compositeImage.sh | ${pkgs.docker}/bin/docker load
|
|
'';
|
|
|
|
serviceConfig = {
|
|
Type = "oneshot";
|
|
};
|
|
};
|
|
}
|
|
|