diff options
| author | seth <[email protected]> | 2023-12-10 07:54:17 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-12-10 07:54:25 -0500 |
| commit | e8a112be9a0bf067c8acb3a26cfd183c2f57c513 (patch) | |
| tree | c3b063cc3a8abbeb3e82ca83eb53cc55e86fd569 /systems/atlas/attic.nix | |
| parent | b68737baf9f8ff6cb6f42b3781b995598bc8ba80 (diff) | |
systems+modules: add secretsDir specialArg
Diffstat (limited to 'systems/atlas/attic.nix')
| -rw-r--r-- | systems/atlas/attic.nix | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/systems/atlas/attic.nix b/systems/atlas/attic.nix index d6e15eb..fe4e67c 100644 --- a/systems/atlas/attic.nix +++ b/systems/atlas/attic.nix @@ -1,8 +1,9 @@ -{config, ...}: let - kb = 1024; -in { - age.secrets.atticCreds.file = - ../../secrets/${config.networking.hostName}/atticCreds.age; +{ + config, + secretsDir, + ... +}: { + age.secrets.atticCreds.file = secretsDir + "/atticCreds.age"; services.atticd = { enable = true; @@ -14,7 +15,9 @@ in { compression.type = "zstd"; - chunking = { + chunking = let + kb = 1024; + in { nar-size-threshold = 64 * kb; min-size = 16 * kb; avg-size = 64 * kb; |
