feat: add filestash container
This commit is contained in:
parent
2a7ffbb769
commit
daa99bf963
@ -102,6 +102,7 @@
|
|||||||
smartmontools
|
smartmontools
|
||||||
];
|
];
|
||||||
|
|
||||||
|
ataraxia.containers.filestash.enable = true;
|
||||||
ataraxia.containers.tinyproxy.enable = true;
|
ataraxia.containers.tinyproxy.enable = true;
|
||||||
ataraxia.security.acme.enable = true;
|
ataraxia.security.acme.enable = true;
|
||||||
ataraxia.services.authentik.enable = true;
|
ataraxia.services.authentik.enable = true;
|
||||||
|
33
modules/nixos/containers/filestash.nix
Normal file
33
modules/nixos/containers/filestash.nix
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
{ config, lib, ... }:
|
||||||
|
let
|
||||||
|
inherit (lib) mkEnableOption mkIf;
|
||||||
|
|
||||||
|
cfg = config.ataraxia.containers.filestash;
|
||||||
|
nas-path = "/media/nas/media-stack";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.ataraxia.containers.filestash = {
|
||||||
|
enable = mkEnableOption "Enable filestash container";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
virtualisation.oci-containers.containers.filestash = {
|
||||||
|
autoStart = true;
|
||||||
|
environment = {
|
||||||
|
PUID = "1000";
|
||||||
|
PGID = "100";
|
||||||
|
UMASK = "002";
|
||||||
|
TZ = "Europe/Moscow";
|
||||||
|
APPLICATION_URL = "files.ataraxiadev.com";
|
||||||
|
CANARY = "true";
|
||||||
|
};
|
||||||
|
# Tags: latest
|
||||||
|
image = "docker.io/machines/filestash@sha256:923c3399768fada3424bb6f3bc01521dad30e9a7a840cfb2eba3610b6acafffe";
|
||||||
|
ports = [ "127.0.0.1:8334:8334/tcp" ];
|
||||||
|
volumes = [
|
||||||
|
"${nas-path}/configs/filestash:/app/data/state"
|
||||||
|
"${nas-path}:/mnt"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user