diff options
Diffstat (limited to 'systems/atlas')
| -rw-r--r-- | systems/atlas/attic.nix | 15 | ||||
| -rw-r--r-- | systems/atlas/default.nix | 3 | ||||
| -rw-r--r-- | systems/atlas/miniflux.nix | 9 |
3 files changed, 17 insertions, 10 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; diff --git a/systems/atlas/default.nix b/systems/atlas/default.nix index 247e134..7b0955a 100644 --- a/systems/atlas/default.nix +++ b/systems/atlas/default.nix @@ -1,6 +1,7 @@ { config, pkgs, + secretsDir, ... }: { imports = [ @@ -18,7 +19,7 @@ hermetic = false; }; - age.secrets.teawiebot.file = ../../secrets/atlas/teawieBot.age; + age.secrets.teawiebot.file = secretsDir + "/teawieBot.age"; boot = { loader.systemd-boot.enable = true; diff --git a/systems/atlas/miniflux.nix b/systems/atlas/miniflux.nix index d25b588..73ed2c6 100644 --- a/systems/atlas/miniflux.nix +++ b/systems/atlas/miniflux.nix @@ -1,6 +1,9 @@ -{config, ...}: { - age.secrets .miniflux.file = - ../../secrets/${config.networking.hostName}/miniflux.age; +{ + config, + secretsDir, + ... +}: { + age.secrets .miniflux.file = secretsDir + "/miniflux.age"; services.miniflux = { enable = true; |
