NixOS-Config/nixos/server/package-configs/firefox-sync/default.nix

31 lines
719 B
Nix
Raw Permalink Normal View History

2024-04-04 18:44:53 +02:00
{
config,
pkgs,
...
}: let
port = 5126;
in {
sops.secrets."sync-secrets".mode = "0440";
2024-04-04 19:04:39 +02:00
sops.secrets."sync-secrets".owner = config.users.users.firefox-syncserver.name;
2024-04-04 19:07:07 +02:00
users.groups.firefox-syncserver = {};
2024-04-04 19:05:50 +02:00
users.users.firefox-syncserver = {
isSystemUser = true;
2024-04-04 19:06:26 +02:00
group = "firefox-syncserver";
2024-04-04 19:05:50 +02:00
extraGroups = [config.users.groups.keys.name];
};
2024-04-04 18:47:07 +02:00
services.mysql.package = pkgs.mariadb;
2024-04-04 18:44:53 +02:00
services.firefox-syncserver = {
enable = true;
secrets = config.sops.secrets."sync-secrets".path;
2024-04-04 18:44:53 +02:00
singleNode = {
enable = true;
hostname = "sync.gladtherescake.eu";
url = "http://localhost:${toString port}";
enableNginx = true;
enableTLS = true;
};
};
}