add attic
This commit is contained in:
parent
1fc43f9526
commit
bc879dafff
3 changed files with 31 additions and 0 deletions
29
modules/services/attic.nix
Normal file
29
modules/services/attic.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue