add a container, stub

This commit is contained in:
Sridhar Ratnakumar 2021-12-05 12:01:47 -05:00
parent 0ecef99ba6
commit e0530694e6
2 changed files with 14 additions and 0 deletions

13
containers/hercules.nix Normal file
View file

@ -0,0 +1,13 @@
{ config, pkgs, lib, ... }:
# A separate container to run Hercules effects
# https://docs.hercules-ci.com/hercules-ci/effects/
{
containers.hercules = {
ephemeral = false;
autoStart = true;
config = { config, pkgs, ... }: {
networking.firewall.allowedTCPPorts = [ ];
};
};
}

View file

@ -4,6 +4,7 @@
imports =
[
(modulesPath + "/installer/scan/not-detected.nix")
(../containers/hercules.nix)
];
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];