test fileshelter

This commit is contained in:
Kopatz
2024-05-04 15:11:53 +02:00
parent d47f75c353
commit 3d645daa1a
9 changed files with 51 additions and 2 deletions

View File

@@ -0,0 +1,29 @@
{ config, pkgs, lib, inputs, ... }:
with lib;
let
cfg = config.custom.services.fileshelter;
in
{
options.custom.services.fileshelter = {
enable = mkEnableOption "Enables fileshelter";
};
config = lib.mkIf cfg.enable {
age.secrets.fileshelter-conf = {
file = ../../secrets/fileshelter-conf.age;
};
custom.misc.docker.enable = true;
virtualisation.oci-containers.containers = {
"fileshelter" = {
autoStart = true;
image = "epoupon/fileshelter";
ports = [
"127.0.0.1:5091:5091"
];
volumes = [
"/data/fileshelter:/var/fileshelter"
"/run/agenix/fileshelter.conf:/etc/fileshelter.conf"
];
};
};
};
}