Build Dnsmasq with nix-snapshotter
This commit is contained in:
parent
782b2e1c45
commit
ab3a068066
9 changed files with 165 additions and 58 deletions
10
utils.nix
10
utils.nix
|
@ -1,8 +1,10 @@
|
|||
{
|
||||
self,
|
||||
pkgs,
|
||||
nixpkgs,
|
||||
nixng,
|
||||
globals,
|
||||
nix-snapshotter,
|
||||
...
|
||||
}: {
|
||||
mkNixNGImage = name: file: let
|
||||
|
@ -27,4 +29,12 @@
|
|||
};
|
||||
|
||||
nixSnapshotterRef = imagePath: "nix:0${imagePath}";
|
||||
|
||||
mkNixNGImage2 = name:
|
||||
(nix-snapshotter.packages.${pkgs.stdenv.system}.nix-snapshotter.buildImage {
|
||||
inherit name;
|
||||
resolvedByNix = true;
|
||||
config.entrypoint = ["${self.nixngConfigurations.${pkgs.stdenv.system}.${name}.config.system.build.toplevel}/init"];
|
||||
})
|
||||
.image;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue