forked from cadey/xesite
22 lines
463 B
Nix
22 lines
463 B
Nix
{ system ? builtins.currentSystem }:
|
|
|
|
let
|
|
pkgs = import (import ./nix/sources.nix).nixpkgs { inherit system; };
|
|
callPackage = pkgs.lib.callPackageWith pkgs;
|
|
site = callPackage ./site.nix { };
|
|
|
|
dockerImage = pkg:
|
|
pkgs.dockerTools.buildLayeredImage {
|
|
name = "xena/christinewebsite";
|
|
tag = pkg.version;
|
|
|
|
contents = [ pkg ];
|
|
|
|
config = {
|
|
Cmd = [ "/bin/site" ];
|
|
WorkingDir = "/";
|
|
};
|
|
};
|
|
|
|
in dockerImage site
|