···11+---
22+name: Module requests
33+about: For NixOS modules that you would like to see
44+title: 'Module request: MODULENAME'
55+labels: '9.needs: module (new)'
66+assignees: ''
77+88+---
99+1010+### Description
1111+1212+<!-- Describe what the module should accomplish: -->
1313+1414+### Notify maintainers
1515+1616+<!-- If applicable, tag the maintainers of the package that corresponds to the module. If the search.nixos.org result shows no maintainers, tag the person that last updated the package. -->
1717+1818+-----
1919+2020+Note for maintainers: Please tag this issue in your PR.
2121+2222+---
2323+2424+Add a :+1: [reaction] to [issues you find important].
2525+2626+[reaction]: https://github.blog/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/
2727+[issues you find important]: https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc
+7-2
nixos/modules/services/web-apps/immich.nix
···116116 description = ''
117117 Configuration for Immich.
118118 See <https://immich.app/docs/install/config-file/> or navigate to
119119- <https://your-immich-domain/admin/system-settings> for
119119+ <https://my.immich.app/admin/system-settings> for
120120 options and defaults.
121121 Setting it to `null` allows configuring Immich in the web interface.
122122 '';
···270270 let
271271 postgresEnv =
272272 if isPostgresUnixSocket then
273273- { DB_URL = "socket://${cfg.database.host}?dbname=${cfg.database.name}"; }
273273+ { DB_URL = "postgresql:///${cfg.database.name}?host=${cfg.database.host}"; }
274274 else
275275 {
276276 DB_HOSTNAME = cfg.database.host;
···317317 after = [ "network.target" ];
318318 wantedBy = [ "multi-user.target" ];
319319 inherit (cfg) environment;
320320+ path = [
321321+ # gzip and pg_dumpall are used by the backup service
322322+ pkgs.gzip
323323+ config.services.postgresql.package
324324+ ];
320325321326 serviceConfig = commonServiceConfig // {
322327 ExecStart = lib.getExe cfg.package;
···3939 # Use the stdenv default phases (./configure; make) instead of the
4040 # ones from buildRustPackage.
4141 configurePhase = "configurePhase";
4242- buildPhase = "buildPhase";
4343- checkPhase = "checkPhase";
4444- installPhase = "installPhase";
4242+ dontCargoBuild = true;
4343+ dontCargoCheck = true;
4444+ dontCargoInstall = true;
45454646 postPatch = ''
4747 # Have to do this here instead of in preConfigure because
···8383 "CARGO_TARGET_DIR=target/${stdenv.hostPlatform.rust.cargoShortTarget}"
8484 ];
85858686- # Use default stdenv installPhase, not the buildRustPackage one.
8787- installPhase = "installPhase";
8686+ dontCargoInstall = true;
88878988 # These libraries are only used by the X11 backend, which will not
9089 # be the common case, so just make them available, don't link them.