add attic

This commit is contained in:
Osman Faruk Bayram 2025-07-28 17:47:24 +03:00
parent 1fc43f9526
commit bc879dafff
3 changed files with 31 additions and 0 deletions

View file

@ -13,6 +13,7 @@ in
# enableNextcloud = true;
enableHydra = true;
enableCaddy = true;
enableAttic = true;
};
services.caddy.virtualHosts = {

View file

@ -0,0 +1,29 @@
{
config,
lib,
...
}:
{
options = {
myModules.enableAttic = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable Attic nix cache service";
};
};
config = lib.mkMerge [
(lib.mkIf config.myModules.enableAttic {
services.atticd = {
enable = true;
settings = {
listen = "[::]:5000";
storage = {
type = "local";
path = "/data/atreus/attic";
};
};
};
})
];
}

View file

@ -1,5 +1,6 @@
{
imports = [
./attic.nix
./caddy.nix
./cloudflare-dyndns.nix
./cloudflared.nix