selfprivacy-nixos-config/api/api.nix

19 lines
444 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;
enableSwagger = config.selfprivacy.userdata.api.enableSwagger;
b2Bucket = config.selfprivacy.userdata.backup.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" ];
};
}