mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-06 15:44:58 +08:00
add a container, stub
This commit is contained in:
parent
0ecef99ba6
commit
e0530694e6
2 changed files with 14 additions and 0 deletions
13
containers/hercules.nix
Normal file
13
containers/hercules.nix
Normal 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 = [ ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -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" ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue