Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ff940e202ed2
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cf81d36fc979
Choose a head ref

Commits on Feb 22, 2019

  1. metrics.nix: add nix-env.qaCountDrv metric

    Before ae16dd1 `nix-env.qaCount` and
    `nix-env.qaCountDrv` were equivalent, after that change that is no longer
    the case so this needs a separate metric now.
    oxij committed Feb 22, 2019
    Copy the full SHA
    36aa5b6 View commit details

Commits on Feb 27, 2019

  1. linuxPackages.tp_smapi: fix evaluation

    has been broken by dadc7eb
    
    (cherry picked from commit 1d1c909)
    Robert Schütz authored and Mic92 committed Feb 27, 2019
    Copy the full SHA
    5c1a47c View commit details
  2. nvidia-docker: init at 2.0.3

    nvidia_x11 and persistenced were modified to provide binaries which can be
    mounted inside a docker-container to be executed there.
    
    most ldconfig-based discovery of bundled nvidia libraries is patched out
    
    ldconfig itself is patched to be able to deal with patchelf'ed libraries
    See https://sourceware.org/bugzilla/show_bug.cgi?id=23964
    Averell Dalton committed Feb 27, 2019
    Copy the full SHA
    8d402c6 View commit details
  3. nixos/docker: add enableNvidia option

    Averell Dalton committed Feb 27, 2019
    Copy the full SHA
    b7dd362 View commit details
  4. riak-cs: mark as insecure

    (cherry picked from commit 515be3b)
    andir committed Feb 27, 2019
    Copy the full SHA
    abac37b View commit details
  5. riak: mark as insecure

    (cherry picked from commit 48f1455)
    andir committed Feb 27, 2019
    Copy the full SHA
    a13d7a2 View commit details

Commits on Feb 28, 2019

  1. Merge pull request #56466 from averelld/nv-docker-19.03

    nvidia-docker 19.03
    infinisil authored Feb 28, 2019
    Copy the full SHA
    db90ae9 View commit details
  2. Revert "Merge pull request #54980 from danbst/etc-relative"

    This reverts commit 0b91fa4, reversing
    changes made to 183919a.
    7c6f434c committed Feb 28, 2019
    Copy the full SHA
    dddd1b6 View commit details
  3. nodejs: fix updateScript evaluation

    (cherry picked from commit 23b2a60)
    Robert Schütz committed Feb 28, 2019
    Copy the full SHA
    bd4f38e View commit details
  4. firefox-bin: fix updateScript evaluation

    (cherry picked from commit fce6329)
    Robert Schütz committed Feb 28, 2019
    Copy the full SHA
    8410b39 View commit details
  5. thunderbird: fix updateScript evaluation

    (cherry picked from commit 1a7c2b3)
    Robert Schütz committed Feb 28, 2019
    Copy the full SHA
    736b85f View commit details
  6. thunderbird-bin: fix updateScript evaluation

    (cherry picked from commit ca8fd54)
    Robert Schütz committed Feb 28, 2019
    Copy the full SHA
    e54ec58 View commit details
  7. Merge pull request #56483 from andir/19.03/riak-cve-2017-3163

    [19.03] Mark Riak and Riak-cs as insecure
    andir authored Feb 28, 2019
    Copy the full SHA
    b25a832 View commit details
  8. kubernetes: 1.13.3 -> 1.13.4 (#56524)

    (cherry picked from commit b8285fc)
    johanot authored and xeji committed Feb 28, 2019
    Copy the full SHA
    2a53812 View commit details

Commits on Mar 1, 2019

  1. Merge #56429: xorgserver: 1.20.3 -> 1.20.4

    (cherry picked from commit 6ad4e3e)
    It's basically just bugfixes, and 19.03 hasn't even been released yet.
    dtzWill authored and vcunat committed Mar 1, 2019
    Copy the full SHA
    71a59af View commit details
  2. metrics.nix: track qaCountBroken instead of qaCountDrv

    From these three values, I believe it's most meaningful to track
    one of the higher ones and their difference (qaCountBroken).
    It's a bit unclear which of the higher ones - I have no data on that,
    so I kept the one used before the parent commit.
    vcunat committed Mar 1, 2019
    Copy the full SHA
    a593f64 View commit details
  3. Merge #56201: add nix-env.qaCountBroken metric

    ... into release-19.03.  (Cherry-picked from 35cf2c8.)
    The branch is affected by the stdenv change differentiating the numbers,
    and I believe consistency with master will be good here.
    vcunat committed Mar 1, 2019
    Copy the full SHA
    e9b11fa View commit details
  4. nixos/plasma5: add xdg-user-dirs to create user directories

    (cherry picked from commit 2e5f64b)
    worldofpeace committed Mar 1, 2019
    Copy the full SHA
    bb6b91d View commit details

Commits on Mar 2, 2019

  1. grafana: 5.4.3 -> 6.0.0 (#56412)

    (cherry picked from commit 52ea2f5)
    WilliButz authored and fpletz committed Mar 2, 2019
    Copy the full SHA
    732a84d View commit details
  2. tinc_pre: fix error after openssl upgrade

    With the openssl upgrade to 1.0.2r / 1.1.1b the tinc pre-release version
    stopped working due to a bug in tinc where an encryption function was
    used during decryption. I submitted a patch upstream [1] but that wasn't
    released yet.
    
    [1] http://git.tinc-vpn.org/git/browse?p=tinc;a=commit;h=2b0aeec02d64bb4724da9ff1dbc19b7d35d7c904
    
    (cherry picked from commit 447c210)
    andir authored and fpletz committed Mar 2, 2019
    Copy the full SHA
    b2d02f9 View commit details
  3. services.nextcloud: add logLevel (#56400)

    a vlaue between 0 and 4 to help debug problems
    
    (cherry picked from commit 20bbfc3)
    Matthieu Coudron authored and fpletz committed Mar 2, 2019
    Copy the full SHA
    d5ea7d1 View commit details
  4. nixos/nextcloud: add overwriteProtocol option

    The overwriteprotocol option can be used to force Nextcloud to generate
    URLs with the given protocol. This is useful for instances behind
    reverse proxies that serve Nextcloud with HTTPS.
    
    In this case Nextcloud can't determine the proper protocol and it needs
    to be configured manually.
    
    (cherry picked from commit b42c24f)
    Ma27 authored and fpletz committed Mar 2, 2019
    Copy the full SHA
    e6d9edd View commit details
  5. radvd: 2.17 -> 2.18

    First release in over a year, not sure of changelog.
    
    Release announcement:
    http://lists.litech.org/pipermail/radvd-announce-l/2019-February/000045.html
    
    (cherry picked from commit e8f4e5a)
    dtzWill authored and fpletz committed Mar 2, 2019
    Copy the full SHA
    3f4d22f View commit details
  6. maintainers.fpletz: add .keys

    (cherry picked from commit bc7d45e)
    fpletz committed Mar 2, 2019
    Copy the full SHA
    f2ba18e View commit details
  7. atlassian-confluence: 6.14.0 -> 6.14.1

    (cherry picked from commit 3516d64)
    ciil authored and fpletz committed Mar 2, 2019
    Copy the full SHA
    f885b8a View commit details
  8. atlassian-crowd: 3.3.3 -> 3.3.4

    (cherry picked from commit 373d975)
    ciil authored and fpletz committed Mar 2, 2019
    Copy the full SHA
    88c0b50 View commit details
  9. linux: 5.0-rc7 -> 5.0-rc8

    (cherry picked from commit 408e445)
    NeQuissimus authored and fpletz committed Mar 2, 2019
    Copy the full SHA
    bbd87a4 View commit details
  10. Copy the full SHA
    dd07dbd View commit details
  11. python3Packages.trezor: 0.11.1 -> 0.11.2 (#56517)

    (cherry picked from commit 3914361)
    prusnak authored and fpletz committed Mar 2, 2019
    Copy the full SHA
    acc8749 View commit details
  12. Copy the full SHA
    dd01509 View commit details
  13. Copy the full SHA
    2352ea4 View commit details
  14. linux_testing_bcachefs: 4.20.2019.02.09 -> 4.20.2019.02.20

    (cherry picked from commit 91c252b)
    hyperfekt authored and fpletz committed Mar 2, 2019
    Copy the full SHA
    0ed6e57 View commit details
  15. qutebrowser: 1.5.2 -> 1.6.0 (#56349)

    (cherry picked from commit c60d946)
    dotlambda authored and fpletz committed Mar 2, 2019
    Copy the full SHA
    810ac8b View commit details
  16. nginxMainline: 1.15.8 -> 1.15.9 (#56416)

    (cherry picked from commit 2576d09)
    alyssais authored and fpletz committed Mar 2, 2019
    Copy the full SHA
    ec3dfa0 View commit details
  17. ffmpeg: 4.1 -> 4.1.1

    dtzWill authored and fpletz committed Mar 2, 2019
    Copy the full SHA
    16bc15d View commit details
  18. plantuml: 1.2019.0 -> 1.2019.1

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/plantuml/versions
    
    (cherry picked from commit bc8eab4)
    r-ryantm authored and fpletz committed Mar 2, 2019
    Copy the full SHA
    51b84c3 View commit details
  19. i3pystatus: 2018-04-11 -> 2019-02-10

    (cherry picked from commit 3709050)
    Mic92 authored and fpletz committed Mar 2, 2019
    Copy the full SHA
    649a2d9 View commit details
  20. gitlab-runner: 11.7.0 -> 11.8.0 (#56388)

    (cherry picked from commit 23846b9)
    bachp authored and fpletz committed Mar 2, 2019
    Copy the full SHA
    ca0231f View commit details
  21. linux: 4.9.160 -> 4.9.161

    (cherry picked from commit 4eff65e)
    NeQuissimus committed Mar 2, 2019
    Copy the full SHA
    9a25049 View commit details
  22. linux: 4.14.103 -> 4.14.104

    (cherry picked from commit 4580d6c)
    NeQuissimus committed Mar 2, 2019
    Copy the full SHA
    ce4ef3e View commit details
  23. linux: 4.19.25 -> 4.19.26

    (cherry picked from commit 9a65fde)
    NeQuissimus committed Mar 2, 2019
    Copy the full SHA
    3c891ad View commit details
  24. linux: 4.20.12 -> 4.20.13

    (cherry picked from commit cab4a71)
    NeQuissimus committed Mar 2, 2019
    Copy the full SHA
    44e80e3 View commit details
  25. rmilter: fix inetSocket

    IPv6 address has to be between [] and the port after.
    
    (cherry picked from commit 2a61c05)
    Julien Moutinho authored and fpletz committed Mar 2, 2019
    Copy the full SHA
    5e8b8b4 View commit details
  26. nixos/nextcloud: update recommended nginx settings

    This updates the configuration to the recommendations in
    https://docs.nextcloud.com/server/15/admin_manual/installation/nginx.html
    
    (cherry picked from commit 7f86209)
    bachp authored and fpletz committed Mar 2, 2019
    Copy the full SHA
    e0538e5 View commit details
  27. nixos/nextcloud: use PHP 7.3 instead of 7.1 by default

    (cherry picked from commit 8f1b163)
    bachp authored and fpletz committed Mar 2, 2019
    Copy the full SHA
    2d12118 View commit details
  28. nixos/nextcloud: move phpPackage and phpOptions into pool

    This allows to have a php configuration for nextcloud that is independent
    of the global configuration.
    
    (cherry picked from commit f0c0b8d)
    bachp authored and fpletz committed Mar 2, 2019
    Copy the full SHA
    7723472 View commit details
  29. nixos/nextcloud: don't make phpPackages configurable

    It needs to match the version in phpfm which is hard coded.
    So there is no point in being able to change it.
    
    (cherry picked from commit 390b610)
    bachp authored and fpletz committed Mar 2, 2019
    Copy the full SHA
    20de174 View commit details
  30. nextcloud: 15.0.4 -> 15.0.5

    (cherry picked from commit 3eda950)
    fpletz committed Mar 2, 2019
    Copy the full SHA
    ca56563 View commit details
  31. chromium: 72.0.3626.119 -> 72.0.3626.121

    CVE-2019-5786
    
    (cherry picked from commit 9a6e646)
    bendlas committed Mar 2, 2019
    Copy the full SHA
    4d356f8 View commit details
  32. webkitgtk: 2.22.6 -> 2.22.7

    (cherry picked from commit 26d8a8c)
    bendlas committed Mar 2, 2019
    Copy the full SHA
    960d7de View commit details
Showing with 902 additions and 561 deletions.
  1. +4 −0 maintainers/maintainer-list.nix
  2. +14 −0 nixos/doc/manual/man-nixos-rebuild.xml
  3. +5 −14 nixos/doc/manual/release-notes/rl-1903.xml
  4. +5 −0 nixos/modules/hardware/video/nvidia.nix
  5. +2 −2 nixos/modules/services/mail/rmilter.nix
  6. +37 −22 nixos/modules/services/web-apps/nextcloud.nix
  7. +4 −2 nixos/modules/services/x11/desktop-managers/plasma5.nix
  8. +5 −10 nixos/modules/system/etc/make-etc.sh
  9. +2 −17 nixos/modules/system/etc/setup-etc.pl
  10. +22 −3 nixos/modules/virtualisation/docker.nix
  11. +9 −3 pkgs/applications/misc/llpp/default.nix
  12. +8 −8 pkgs/applications/networking/browsers/chromium/upstream-info.nix
  13. +2 −1 pkgs/applications/networking/browsers/firefox-bin/default.nix
  14. +397 −397 pkgs/applications/networking/browsers/firefox-bin/release_sources.nix
  15. +4 −4 pkgs/applications/networking/browsers/firefox/packages.nix
  16. +2 −2 pkgs/applications/networking/browsers/qutebrowser/default.nix
  17. +2 −2 pkgs/applications/networking/cluster/kubernetes/default.nix
  18. +2 −1 pkgs/applications/networking/mailreaders/thunderbird-bin/default.nix
  19. +2 −2 pkgs/applications/networking/mailreaders/thunderbird/default.nix
  20. +3 −3 pkgs/applications/video/qstopmotion/default.nix
  21. +13 −0 pkgs/applications/virtualization/nvidia-docker/config.toml
  22. +84 −0 pkgs/applications/virtualization/nvidia-docker/default.nix
  23. +130 −0 pkgs/applications/virtualization/nvidia-docker/libnvc-ldconfig-and-path-fixes.patch
  24. +53 −0 pkgs/applications/virtualization/nvidia-docker/libnvc.nix
  25. +3 −4 pkgs/applications/window-managers/i3/pystatus.nix
  26. +2 −1 pkgs/development/interpreters/racket/default.nix
  27. +2 −2 pkgs/development/libraries/webkitgtk/default.nix
  28. +2 −2 pkgs/development/python-modules/trezor/default.nix
  29. +3 −3 pkgs/development/tools/build-managers/leiningen/default.nix
  30. +4 −4 pkgs/development/tools/continuous-integration/gitlab-runner/default.nix
  31. +2 −2 pkgs/development/web/nodejs/nodejs.nix
  32. +3 −5 pkgs/games/multimc/default.nix
  33. +2 −2 pkgs/os-specific/linux/kernel/linux-4.14.nix
  34. +2 −2 pkgs/os-specific/linux/kernel/linux-4.19.nix
  35. +2 −2 pkgs/os-specific/linux/kernel/linux-4.20.nix
  36. +2 −2 pkgs/os-specific/linux/kernel/linux-4.9.nix
  37. +3 −3 pkgs/os-specific/linux/kernel/linux-testing-bcachefs.nix
  38. +3 −3 pkgs/os-specific/linux/kernel/linux-testing.nix
  39. +2 −0 pkgs/os-specific/linux/nvidia-x11/builder.sh
  40. +5 −0 pkgs/os-specific/linux/nvidia-x11/persistenced.nix
  41. +2 −2 pkgs/os-specific/linux/tp_smapi/default.nix
  42. +3 −3 pkgs/servers/atlassian/confluence.nix
  43. +2 −2 pkgs/servers/atlassian/crowd.nix
  44. +2 −2 pkgs/servers/http/nginx/mainline.nix
  45. +2 −2 pkgs/servers/mail/postfix/default.nix
  46. +2 −2 pkgs/servers/minio/default.nix
  47. +5 −3 pkgs/servers/monitoring/grafana/default.nix
  48. +2 −2 pkgs/servers/nextcloud/default.nix
  49. +1 −0 pkgs/servers/nosql/riak-cs/2.1.1.nix
  50. +1 −0 pkgs/servers/nosql/riak/2.2.0.nix
  51. +3 −3 pkgs/servers/x11/xorg/default.nix
  52. +1 −1 pkgs/servers/x11/xorg/tarballs.list
  53. +2 −2 pkgs/tools/inputmethods/ibus-engines/ibus-typing-booster/default.nix
  54. +2 −2 pkgs/tools/misc/plantuml/default.nix
  55. +2 −2 pkgs/tools/networking/radvd/default.nix
  56. +9 −1 pkgs/tools/networking/tinc/pre.nix
  57. +2 −2 pkgs/tools/system/ddrescue/default.nix
  58. +2 −0 pkgs/top-level/all-packages.nix
  59. +4 −0 pkgs/top-level/metrics.nix
4 changes: 4 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
@@ -1628,6 +1628,10 @@
email = "fpletz@fnordicwalking.de";
github = "fpletz";
name = "Franz Pletz";
keys = [{
longkeyid = "rsa4096/0x846FDED7792617B4";
fingerprint = "8A39 615D CE78 AF08 2E23 F303 846F DED7 7926 17B4";
}];
};
fps = {
email = "mista.tapas@gmx.net";
14 changes: 14 additions & 0 deletions nixos/doc/manual/man-nixos-rebuild.xml
Original file line number Diff line number Diff line change
@@ -38,6 +38,10 @@
<option>dry-activate</option>
</arg>

<arg choice='plain'>
<option>edit</option>
</arg>

<arg choice='plain'>
<option>build-vm</option>
</arg>
@@ -188,6 +192,16 @@ $ nix-build /path/to/nixpkgs/nixos -A system
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<option>edit</option>
</term>
<listitem>
<para>
Opens <filename>configuration.nix</filename> in the default editor.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<option>build-vm</option>
19 changes: 5 additions & 14 deletions nixos/doc/manual/release-notes/rl-1903.xml
Original file line number Diff line number Diff line change
@@ -580,20 +580,6 @@
use <literal>nixos-rebuild boot; reboot</literal>.
</para>
</listitem>
<listitem>
<para>
Symlinks in <filename>/etc</filename> (except <filename>/etc/static</filename>)
are now relative instead of absolute. This makes possible to examine
NixOS container's <filename>/etc</filename> directory from host system
(previously it pointed to host <filename>/etc</filename> when viewed from host,
and to container <filename>/etc</filename> when viewed from container chroot).
</para>
<para>
This also makes <filename>/etc/os-release</filename> adhere to
<link xlink:href="https://www.freedesktop.org/software/systemd/man/os-release.html">the standard</link>
for NixOS containers.
</para>
</listitem>
<listitem>
<para>
Flat volumes are now disabled by default in <literal>hardware.pulseaudio</literal>.
@@ -687,6 +673,11 @@
An upgrade guide can be found <link xlink:href="https://www.open-mpi.org/faq/?category=mpi-removed">here</link>.
</para>
</listitem>
<listitem>
<para>
A new subcommand <command>nixos-rebuild edit</command> was added.
</para>
</listitem>
</itemizedlist>
</section>
</section>
5 changes: 5 additions & 0 deletions nixos/modules/hardware/video/nvidia.nix
Original file line number Diff line number Diff line change
@@ -172,6 +172,11 @@ in
environment.systemPackages = [ nvidia_x11.bin nvidia_x11.settings ]
++ lib.filter (p: p != null) [ nvidia_x11.persistenced ];

systemd.tmpfiles.rules = optional config.virtualisation.docker.enableNvidia
"L+ /run/nvidia-docker/bin - - - - ${nvidia_x11.bin}/origBin"
++ optional (nvidia_x11.persistenced != null && config.virtualisation.docker.enableNvidia)
"L+ /run/nvidia-docker/extras/bin/nvidia-persistenced - - - - ${nvidia_x11.persistenced}/origBin/nvidia-persistenced";

boot.extraModulePackages = [ nvidia_x11.bin ];

# nvidia-uvm is required by CUDA applications.
4 changes: 2 additions & 2 deletions nixos/modules/services/mail/rmilter.nix
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ let
postfixCfg = config.services.postfix;
cfg = config.services.rmilter;

inetSocket = addr: port: "inet:[${toString port}@${addr}]";
inetSocket = addr: port: "inet:${addr}:${toString port}";
unixSocket = sock: "unix:${sock}";

systemdSocket = if cfg.bindSocket.type == "unix" then cfg.bindSocket.path
@@ -97,7 +97,7 @@ in

bindSocket.address = mkOption {
type = types.str;
default = "::1";
default = "[::1]";
example = "0.0.0.0";
description = ''
Inet address to listen on.
59 changes: 37 additions & 22 deletions nixos/modules/services/web-apps/nextcloud.nix
Original file line number Diff line number Diff line change
@@ -5,14 +5,18 @@ with lib;
let
cfg = config.services.nextcloud;

phpPackage = pkgs.php73;
phpPackages = pkgs.php73Packages;

toKeyValue = generators.toKeyValue {
mkKeyValue = generators.mkKeyValueDefault {} " = ";
};

phpOptionsExtensions = ''
${optionalString cfg.caching.apcu "extension=${cfg.phpPackages.apcu}/lib/php/extensions/apcu.so"}
${optionalString cfg.caching.redis "extension=${cfg.phpPackages.redis}/lib/php/extensions/redis.so"}
${optionalString cfg.caching.memcached "extension=${cfg.phpPackages.memcached}/lib/php/extensions/memcached.so"}
${optionalString cfg.caching.apcu "extension=${phpPackages.apcu}/lib/php/extensions/apcu.so"}
${optionalString cfg.caching.redis "extension=${phpPackages.redis}/lib/php/extensions/redis.so"}
${optionalString cfg.caching.memcached "extension=${phpPackages.memcached}/lib/php/extensions/memcached.so"}
extension=${phpPackages.imagick}/lib/php/extensions/imagick.so
zend_extension = opcache.so
opcache.enable = 1
'';
@@ -45,6 +49,11 @@ in {
default = "/var/lib/nextcloud";
description = "Storage path of nextcloud.";
};
logLevel = mkOption {
type = types.ints.between 0 4;
default = 2;
description = "Log level value between 0 (DEBUG) and 4 (FATAL).";
};
https = mkOption {
type = types.bool;
default = false;
@@ -89,18 +98,6 @@ in {
'';
};

phpPackages = mkOption {
type = types.attrs;
default = pkgs.php71Packages;
defaultText = "pkgs.php71Packages";
description = ''
Overridable attribute of the PHP packages set to use. If any caching
module is enabled, it will be taken from here. Therefore it should
match the version of PHP given to
<literal>services.phpfpm.phpPackage</literal>.
'';
};

phpOptions = mkOption {
type = types.attrsOf types.str;
default = {
@@ -218,6 +215,19 @@ in {
<literal>services.nextcloud.hostname</literal> here.
'';
};

overwriteProtocol = mkOption {
type = types.nullOr (types.enum [ "http" "https" ]);
default = null;
example = "https";

description = ''
Force Nextcloud to always use HTTPS i.e. for link generation. Nextcloud
uses the currently used protocol by default, but when behind a reverse-proxy,
it may use <literal>http</literal> for everything although Nextcloud
may be served via HTTPS.
'';
};
};

caching = {
@@ -281,6 +291,8 @@ in {
'skeletondirectory' => '${cfg.skeletonDirectory}',
${optionalString cfg.caching.apcu "'memcache.local' => '\\OC\\Memcache\\APCu',"}
'log_type' => 'syslog',
'log_level' => '${builtins.toString cfg.logLevel}',
${optionalString (cfg.config.overwriteProtocol != null) "'overwriteprotocol' => '${cfg.config.overwriteProtocol}',"}
];
'';
occInstallCmd = let
@@ -353,14 +365,14 @@ in {
};

services.phpfpm = {
phpOptions = phpOptionsExtensions;
phpPackage = pkgs.php71;
pools.nextcloud = let
phpAdminValues = (toKeyValue
(foldr (a: b: a // b) {}
(mapAttrsToList (k: v: { "php_admin_value[${k}]" = v; })
phpOptions)));
in {
phpOptions = phpOptionsExtensions;
phpPackage = phpPackage;
listen = "/run/phpfpm/nextcloud";
extraConfig = ''
listen.owner = nginx
@@ -401,7 +413,7 @@ in {
};
"/" = {
priority = 200;
extraConfig = "rewrite ^ /index.php$uri;";
extraConfig = "rewrite ^ /index.php$request_uri;";
};
"~ ^/store-apps" = {
priority = 201;
@@ -438,22 +450,23 @@ in {
fastcgi_read_timeout 120s;
'';
};
"~ ^/(?:updater|ocs-provider)(?:$|/)".extraConfig = ''
"~ ^/(?:updater|ocs-provider|ocm-provider)(?:$|\/)".extraConfig = ''
try_files $uri/ =404;
index index.php;
'';
"~ \\.(?:css|js|woff|svg|gif)$".extraConfig = ''
try_files $uri /index.php$uri$is_args$args;
"~ \\.(?:css|js|woff2?|svg|gif)$".extraConfig = ''
try_files $uri /index.php$request_uri;
add_header Cache-Control "public, max-age=15778463";
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none;
add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none;
add_header Referrer-Policy no-referrer;
access_log off;
'';
"~ \\.(?:png|html|ttf|ico|jpg|jpeg)$".extraConfig = ''
try_files $uri /index.php$uri$is_args$args;
try_files $uri /index.php$request_uri;
access_log off;
'';
};
@@ -463,10 +476,12 @@ in {
add_header X-Robots-Tag none;
add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none;
add_header Referrer-Policy no-referrer;
error_page 403 /core/templates/403.php;
error_page 404 /core/templates/404.php;
client_max_body_size ${cfg.maxUploadSize};
fastcgi_buffers 64 4K;
fastcgi_hide_header X-Powered-By;
gzip on;
gzip_vary on;
gzip_comp_level 4;
6 changes: 4 additions & 2 deletions nixos/modules/services/x11/desktop-managers/plasma5.nix
Original file line number Diff line number Diff line change
@@ -163,6 +163,8 @@ in

libsForQt56.phonon-backend-gstreamer
libsForQt5.phonon-backend-gstreamer

xdg-user-dirs # Update user dirs as described in https://freedesktop.org/wiki/Software/xdg-user-dirs/
]

++ lib.optionals cfg.enableQt4Support [ pkgs.phonon-backend-gstreamer ]
@@ -175,9 +177,9 @@ in
++ lib.optional config.services.colord.enable colord-kde
++ lib.optionals config.services.samba.enable [ kdenetwork-filesharing pkgs.samba ];

environment.pathsToLink = [
environment.pathsToLink = [
# FIXME: modules should link subdirs of `/share` rather than relying on this
"/share"
"/share"
];

environment.etc = singleton {
15 changes: 5 additions & 10 deletions nixos/modules/system/etc/make-etc.sh
Original file line number Diff line number Diff line change
@@ -10,11 +10,6 @@ users_=($users)
groups_=($groups)
set +f

# Create relative symlinks, so that the links can be followed if
# the NixOS installation is not mounted as filesystem root.
# Absolute symlinks violate the os-release format
# at https://www.freedesktop.org/software/systemd/man/os-release.html
# and break e.g. systemd-nspawn and os-prober.
for ((i = 0; i < ${#targets_[@]}; i++)); do
source="${sources_[$i]}"
target="${targets_[$i]}"
@@ -24,28 +19,28 @@ for ((i = 0; i < ${#targets_[@]}; i++)); do
# If the source name contains '*', perform globbing.
mkdir -p $out/etc/$target
for fn in $source; do
ln -s --relative "$fn" $out/etc/$target/
ln -s "$fn" $out/etc/$target/
done

else

mkdir -p $out/etc/$(dirname $target)
if ! [ -e $out/etc/$target ]; then
ln -s --relative $source $out/etc/$target
ln -s $source $out/etc/$target
else
echo "duplicate entry $target -> $source"
if test "$(readlink $out/etc/$target)" != "$source"; then
echo "mismatched duplicate entry $(readlink $out/etc/$target) <-> $source"
exit 1
fi
fi

if test "${modes_[$i]}" != symlink; then
echo "${modes_[$i]}" > $out/etc/$target.mode
echo "${users_[$i]}" > $out/etc/$target.uid
echo "${groups_[$i]}" > $out/etc/$target.gid
fi

fi
done

19 changes: 2 additions & 17 deletions nixos/modules/system/etc/setup-etc.pl
Original file line number Diff line number Diff line change
@@ -4,7 +4,6 @@
use File::Path;
use File::Basename;
use File::Slurp;
use File::Spec;

my $etc = $ARGV[0] or die;
my $static = "/etc/static";
@@ -18,20 +17,6 @@ sub atomicSymlink {
return 1;
}

# Create relative symlinks, so that the links can be followed if
# the NixOS installation is not mounted as filesystem root.
# Absolute symlinks violate the os-release format
# at https://www.freedesktop.org/software/systemd/man/os-release.html
# and break e.g. systemd-nspawn and os-prober.
sub atomicRelativeSymlink {
my ($source, $target) = @_;
my $tmp = "$target.tmp";
unlink $tmp;
my $rel = File::Spec->abs2rel($source, dirname $target);
symlink $rel, $tmp or return 0;
rename $tmp, $target or return 0;
return 1;
}

# Atomically update /etc/static to point at the etc files of the
# current configuration.
@@ -118,7 +103,7 @@ sub link {
if (-e "$_.mode") {
my $mode = read_file("$_.mode"); chomp $mode;
if ($mode eq "direct-symlink") {
atomicRelativeSymlink readlink("$static/$fn"), $target or warn;
atomicSymlink readlink("$static/$fn"), $target or warn;
} else {
my $uid = read_file("$_.uid"); chomp $uid;
my $gid = read_file("$_.gid"); chomp $gid;
@@ -132,7 +117,7 @@ sub link {
push @copied, $fn;
print CLEAN "$fn\n";
} elsif (-l "$_") {
atomicRelativeSymlink "$static/$fn", $target or warn;
atomicSymlink "$static/$fn", $target or warn;
}
}

Loading