firefox-syncserver: init
This commit is contained in:
25
flake.nix
25
flake.nix
@@ -105,7 +105,19 @@
|
||||
|
||||
service_configs = import ./service-configs.nix;
|
||||
|
||||
pkgs = import nixpkgs {
|
||||
# Bootstrap pkgs used only to apply patches to nixpkgs source.
|
||||
bootstrapPkgs = import nixpkgs { inherit system; };
|
||||
|
||||
# Patch nixpkgs to add PostgreSQL backend support for firefox-syncserver.
|
||||
patchedNixpkgsSrc = bootstrapPkgs.applyPatches {
|
||||
name = "nixpkgs-patched";
|
||||
src = nixpkgs;
|
||||
patches = [
|
||||
./patches/0001-firefox-syncserver-add-postgresql-backend-support.patch
|
||||
];
|
||||
};
|
||||
|
||||
pkgs = import patchedNixpkgsSrc {
|
||||
inherit system;
|
||||
targetPlatform = system;
|
||||
buildPlatform = builtins.currentSystem;
|
||||
@@ -157,10 +169,21 @@
|
||||
./disk-config.nix
|
||||
./configuration.nix
|
||||
|
||||
# Replace upstream firefox-syncserver module + package with patched
|
||||
# versions that add PostgreSQL backend support.
|
||||
{
|
||||
disabledModules = [ "services/networking/firefox-syncserver.nix" ];
|
||||
imports = [
|
||||
"${patchedNixpkgsSrc}/nixos/modules/services/networking/firefox-syncserver.nix"
|
||||
];
|
||||
nixpkgs.overlays = [
|
||||
nix-minecraft.overlay
|
||||
(import ./modules/overlays.nix)
|
||||
(_final: prev: {
|
||||
syncstorage-rs =
|
||||
prev.callPackage "${patchedNixpkgsSrc}/pkgs/by-name/sy/syncstorage-rs/package.nix"
|
||||
{ };
|
||||
})
|
||||
];
|
||||
nixpkgs.config.allowUnfreePredicate =
|
||||
pkg:
|
||||
|
||||
Reference in New Issue
Block a user