write-ups-challenges-2020-2021/scheming-schemer/first/docker.nix

28 lines
481 B
Nix
Raw Normal View History

2022-11-24 17:03:20 +00:00
{ lib, pkgs, config, ... }
let image = pkgs.dockerTools.buildImage {
name = "scheming-schemer/first";
config = {
fromImage = "asuri/ctf-xinetd";
tag = "latest";
runAsRoot = ''
rm -rf /etc/xinetd.d/*
useradd -U -m ig && mkdir -p /home/ctf-xinetd
'';
};
}
with lib;
{
options = {}
config = {
virtualisation.oci-containers.containers = {
first-scheming-schemer = {
image = "asauri/ctf-xinetd:latest";
};
};
};
}