write-ups-challenges-2020-2021/scheming-schemer/first/docker.nix
2022-11-24 18:03:20 +01:00

28 lines
481 B
Nix

{ 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";
};
};
};
}