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

@ -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";
};
};
};
})
];
}