test fileshelter
This commit is contained in:
@@ -5,5 +5,6 @@
|
||||
./kubernetes.nix
|
||||
./kavita.nix
|
||||
./nginx.nix
|
||||
./fileshelter.nix
|
||||
];
|
||||
}
|
||||
|
||||
29
modules/services/fileshelter.nix
Normal file
29
modules/services/fileshelter.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user