selfprivacy-nixos-config/api/api.nix

19 lines
441 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 14:08:58 +00:00
enableSwagger = config.services.userdata.api.enableSwagger;
2021-12-02 15:16:16 +00:00
b2Bucket = config.services.userdata.backblaze.bucket;
2021-11-15 10:02:05 +00:00
};
users.users."selfprivacy-api" = {
isNormalUser = false;
isSystemUser = true;
extraGroups = [ "opendkim" ];
2022-04-20 10:22:16 +00:00
group = "selfprivacy-api";
2021-11-15 10:02:05 +00:00
};
users.groups."selfprivacy-api" = {
members = [ "selfprivacy-api" ];
};
}