depot/cluster/services/storage/external.nix

15 lines
411 B
Nix

{ config, ... }:
{
services.external-storage = {
underlays.default = {
subUser = "sub1";
credentialsFile = ./secrets/storage-box-credentials.age;
path = "/fs/by-host/${config.networking.hostName}";
};
fileSystems.external = {
mountpoint = "/srv/storage";
encryptionKeyFile = ./secrets/external-storage-encryption-key-${config.networking.hostName}.age;
};
};
}