wip: attic
This commit is contained in:
@@ -49,6 +49,7 @@
|
|||||||
|
|
||||||
deertopia = {
|
deertopia = {
|
||||||
authelia.enable = true;
|
authelia.enable = true;
|
||||||
|
# atticd.enable = true;
|
||||||
gitea.enable = true;
|
gitea.enable = true;
|
||||||
quiver.enable = true;
|
quiver.enable = true;
|
||||||
www.enable = true;
|
www.enable = true;
|
||||||
|
|||||||
39
modules/nixos/deertopia/atticd.nix
Normal file
39
modules/nixos/deertopia/atticd.nix
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let cfg = config.sydnix.deertopia.atticd;
|
||||||
|
in {
|
||||||
|
options.sydnix.deertopia.atticd = {
|
||||||
|
enable = lib.mkEnableOption "Atticd";
|
||||||
|
port = lib.mkOption {
|
||||||
|
default = 8012;
|
||||||
|
type = lib.types.port;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
sydnix.sops.secrets.atticd-token = {
|
||||||
|
# owner = config.services.atticd.user;
|
||||||
|
# group = config.services.atticd.group;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.atticd = {
|
||||||
|
enable = true;
|
||||||
|
environmentFile =
|
||||||
|
config.sops.secrets.atticd-token.path;
|
||||||
|
settings = {
|
||||||
|
api-endpoint = "https://cache2.deertopia.net/";
|
||||||
|
listen = "[::]:${toString cfg.port}";
|
||||||
|
garbage-collection = {
|
||||||
|
default-retention-period = "3 months";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
sydnix.deertopia.nginx.vhosts."attic".vhost = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."/".proxyPass =
|
||||||
|
"http://127.0.0.1:${toString cfg.port}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user