Add firefox-syncserver

This commit is contained in:
Fern Garden 2025-07-03 20:23:08 +08:00
parent 3da796093e
commit 6c8f495a80
2 changed files with 31 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
*.env

View file

@ -72,5 +72,35 @@
}
];
};
nixosConfigurations.lxc-firefox-syncserver = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
modules = [
(nixpkgs + "/nixos/modules/virtualisation/proxmox-lxc.nix")
{
networking.hostName = "firefox-syncserver";
services.mysql.package = nixpkgs.legacyPackages.${system}.mariadb;
services.firefox-syncserver = {
enable = true;
secrets = ./firefox-syncserver.env;
settings.host = "0.0.0.0";
singleNode = {
enable = true;
hostname = "0.0.0.0";
url = "https://fxsync.fern.garden";
capacity = 1;
};
};
networking.firewall.allowedTCPPorts = [ 5000 ];
system.stateVersion = "25.05";
}
];
};
};
}