selfprivacy-nixos-config/api/api.nix

22 lines
650 B
Nix
Raw Normal View History

2021-11-16 10:28:16 +00:00
{ config, pkgs, ... }:
2021-11-15 10:02:05 +00:00
{
services.selfprivacy-api = {
enable = true;
2021-11-16 10:28:16 +00:00
token = config.services.userdata.api.token;
2021-11-16 14:08:58 +00:00
enableSwagger = config.services.userdata.api.enableSwagger;
2021-11-16 16:05:05 +00:00
b2AccountId = config.services.userdata.backblaze.accountId;
b2AccountKey = config.services.userdata.backblaze.accountKey;
2021-12-02 15:16:16 +00:00
b2Bucket = config.services.userdata.backblaze.bucket;
2021-11-16 16:05:05 +00:00
resticPassword = config.services.userdata.resticPassword;
2021-11-15 10:02:05 +00:00
};
users.users."selfprivacy-api" = {
isNormalUser = false;
isSystemUser = true;
extraGroups = [ "opendkim" ];
};
users.groups."selfprivacy-api" = {
members = [ "selfprivacy-api" ];
};
}