add attic
This commit is contained in:
parent
1fc43f9526
commit
bc879dafff
3 changed files with 31 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ in
|
|||
# enableNextcloud = true;
|
||||
enableHydra = true;
|
||||
enableCaddy = true;
|
||||
enableAttic = true;
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts = {
|
||||
|
|
|
|||
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./attic.nix
|
||||
./caddy.nix
|
||||
./cloudflare-dyndns.nix
|
||||
./cloudflared.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue