selfprivacy-rest-api/nixos/config.nix
Alexander Tomokhov e6e9d0677e add selfprivacy-api NixOS module
Just a copy from selfprivacy-nixos-config.
2023-11-16 06:27:24 +04:00

19 lines
420 B
Nix

{ config, ... }:
{
services.selfprivacy-api = {
enable = true;
enableSwagger = config.selfprivacy.api.enableSwagger;
b2Bucket = config.selfprivacy.backup.bucket;
};
users.users."selfprivacy-api" = {
isNormalUser = false;
isSystemUser = true;
extraGroups = [ "opendkim" ];
group = "selfprivacy-api";
};
users.groups."selfprivacy-api" = {
members = [ "selfprivacy-api" ];
};
}