Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
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-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7defc47944fe
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8e1852ac7e78
Choose a head ref

Commits on Mar 26, 2019

  1. gnulib: 20180226 -> 20190326

    dtzWill committed Mar 26, 2019
    Copy the full SHA
    f7505ee View commit details

Commits on Apr 15, 2019

  1. python37Packages.cfgv: 1.4.0 -> 1.6.0

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/python3.7-cfgv/versions
    r-ryantm committed Apr 15, 2019
    Copy the full SHA
    df2a755 View commit details

Commits on Apr 16, 2019

  1. python37Packages.django_modelcluster: 4.3 -> 4.4

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/python3.7-django-modelcluster/versions
    r-ryantm committed Apr 16, 2019
    Copy the full SHA
    fb9591e View commit details

Commits on Apr 21, 2019

  1. Copy the full SHA
    d4ff231 View commit details
  2. llvmPackages: keep darwin at llvm5

    My previous attempts to bump the Darwin stdenv version didn't
    seem to work, but AFAIK doing so should be straightforward
    for anyone with a Darwin builder and the interest in tackling this.
    
    While not the preferred solution, adding a conditional lets us move on,
    as we missed 6 entirely due to no one getting around to resolving the
    Darwin bootstrap accordingly.
    dtzWill authored and matthewbauer committed Apr 21, 2019
    Copy the full SHA
    dd649a0 View commit details
  3. Copy the full SHA
    564bf8d View commit details
  4. Copy the full SHA
    4c3c8f4 View commit details
  5. Revert "Revert "darwin 10.12 commits""

    This reverts commit 8505e71.
    matthewbauer committed Apr 21, 2019
    Copy the full SHA
    d69cc77 View commit details
  6. darwin: move to llvm7

    matthewbauer committed Apr 21, 2019
    Copy the full SHA
    ae1e940 View commit details
  7. utils.bash: allow response files in bootstrapping

    llvm uses response files in bootstrapping. It’s okay for them to
    happen even though we don’t use expandResponseParams here right now.
    matthewbauer committed Apr 21, 2019
    Copy the full SHA
    5fad67d View commit details

Commits on Apr 23, 2019

  1. networkmanager: 1.16.0 -> 1.18.0

    * build w/iwd support since it's free (no dep required!)
    * move to iputils for minor utilities, instead of inetutils
    * parallel building :)
    
    https://gitlab.freedesktop.org/NetworkManager/NetworkManager/raw/1.18.0/NEWS
    dtzWill committed Apr 23, 2019
    Copy the full SHA
    b053777 View commit details
  2. libuv: 1.27.0 -> 1.28.0

    lo1tuma committed Apr 23, 2019
    Copy the full SHA
    a66d273 View commit details
  3. nodejs-12_x: init at 12.0.0

    lo1tuma committed Apr 23, 2019
    Copy the full SHA
    4ddbac7 View commit details

Commits on Apr 24, 2019

  1. Copy the full SHA
    a39bb0f View commit details
  2. Copy the full SHA
    de76c1b View commit details
  3. Copy the full SHA
    6be3f7f View commit details
  4. Merge pull request #60164 from worldofpeace/pygobject-bump

     python3Packages.pygobject3: 3.32.0 -> 3.32.1,  pythonPackages.pycairo: 1.18.0 -> 1.18.1
    worldofpeace authored Apr 24, 2019
    Copy the full SHA
    6be5aa4 View commit details
  5. Merge staging-next into staging

    FRidh committed Apr 24, 2019
    Copy the full SHA
    ff9af96 View commit details
  6. Merge pull request #60096 from worldofpeace/asyncssh-bump

    pythonPackages.asyncssh: 1.15.1 -> 1.16.1
    worldofpeace authored Apr 24, 2019
    Copy the full SHA
    76e7783 View commit details
  7. python: Wand: 0.5.2 -> 0.5.3

    FRidh committed Apr 24, 2019
    Copy the full SHA
    137311d View commit details
  8. Copy the full SHA
    529fe39 View commit details
  9. python: atomman: 1.2.5 -> 1.2.6

    FRidh committed Apr 24, 2019
    Copy the full SHA
    534ee33 View commit details
  10. Copy the full SHA
    fa83291 View commit details
  11. python: cffi: 1.12.2 -> 1.12.3

    FRidh committed Apr 24, 2019
    Copy the full SHA
    9f4e663 View commit details
  12. Copy the full SHA
    f665735 View commit details
  13. python: cypari2: 2.1.0 -> 2.1.1

    FRidh committed Apr 24, 2019
    Copy the full SHA
    2d0a2ac View commit details
  14. Copy the full SHA
    5631b37 View commit details
  15. python: ecdsa: 0.13 -> 0.13.2

    FRidh committed Apr 24, 2019
    Copy the full SHA
    7b6b529 View commit details
  16. python: genanki: 0.6.3 -> 0.6.4

    FRidh committed Apr 24, 2019
    Copy the full SHA
    76c32df View commit details
  17. python: gsd: 1.6.1 -> 1.6.2

    FRidh committed Apr 24, 2019
    Copy the full SHA
    aefc5de View commit details
  18. Copy the full SHA
    b84525d View commit details
  19. Copy the full SHA
    f2aee56 View commit details
  20. python: jdcal: 1.4 -> 1.4.1

    FRidh committed Apr 24, 2019
    Copy the full SHA
    42d0d4f View commit details
  21. Copy the full SHA
    c79fbdb View commit details
  22. Copy the full SHA
    c9a5365 View commit details
  23. python: moto: 1.3.7 -> 1.3.8

    FRidh committed Apr 24, 2019
    Copy the full SHA
    5ff4e92 View commit details
  24. Copy the full SHA
    e2d9650 View commit details
  25. python: nilearn: 0.5.1 -> 0.5.2

    FRidh committed Apr 24, 2019
    Copy the full SHA
    b0bd4e7 View commit details
  26. python: numpy: 1.16.2 -> 1.16.3

    FRidh committed Apr 24, 2019
    Copy the full SHA
    2016715 View commit details
  27. Copy the full SHA
    62749c5 View commit details
  28. Copy the full SHA
    3d8043e View commit details
  29. Copy the full SHA
    e03d551 View commit details
  30. Copy the full SHA
    631149a View commit details
  31. python: pyrr: 0.10.2 -> 0.10.3

    FRidh committed Apr 24, 2019
    Copy the full SHA
    4157f6e View commit details
  32. python: pyspark: 2.4.1 -> 2.4.2

    FRidh committed Apr 24, 2019
    Copy the full SHA
    a4643e9 View commit details
  33. Copy the full SHA
    4e3215a View commit details
  34. Copy the full SHA
    2f50805 View commit details
  35. python: s3fs: 0.2.0 -> 0.2.1

    FRidh committed Apr 24, 2019
    Copy the full SHA
    ee9b28d View commit details
  36. Copy the full SHA
    58dba9e View commit details
  37. Copy the full SHA
    f3939bd View commit details
Showing 476 changed files with 5,064 additions and 7,151 deletions.
14 changes: 11 additions & 3 deletions doc/stdenv.xml
Original file line number Diff line number Diff line change
@@ -2643,9 +2643,7 @@ addEnvHooks "$hostOffset" myBashFunction
At <filename>/var/lib/cntr</filename> the sandboxed filesystem is
mounted. All commands and files of the system are still accessible
within the shell. To execute commands from the sandbox use the cntr exec
subcommand. Note that <command>cntr</command> also needs to be executed
on the machine that is doing the build, which might not be the case when
remote builders are enabled. <command>cntr</command> is only supported
subcommand. <command>cntr</command> is only supported
on Linux-based platforms. To use it first add <literal>cntr</literal> to
your <literal>environment.systemPackages</literal> on NixOS or
alternatively to the root user on non-NixOS systems. Then in the package
@@ -2657,6 +2655,16 @@ addEnvHooks "$hostOffset" myBashFunction
When a build failure happens there will be an instruction printed that
shows how to attach with <literal>cntr</literal> to the build sandbox.
</para>
<note>
<title>Caution with remote builds</title>
<para>
This won't work with remote builds as the build environment is on
a different machine and can't be accessed by <command>cntr</command>.
Remote builds can be turned off by setting <literal>--option builders ''</literal>
for <command>nix-build</command> or <literal>--builders ''</literal> for
<command>nix build</command>.
</para>
</note>
</listitem>
</varlistentry>
<varlistentry>
15 changes: 15 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
@@ -1100,6 +1100,11 @@
github = "cwoac";
name = "Oliver Matthews";
};
dalance = {
email = "dalance@gmail.com";
github = "dalance";
name = "Naoya Hatta";
};
DamienCassou = {
email = "damien@cassou.me";
github = "DamienCassou";
@@ -1164,6 +1169,11 @@
github = "davorb";
name = "Davor Babic";
};
dawidsowa = {
email = "dawid_sowa@posteo.net";
github = "dawidsowa";
name = "Dawid Sowa";
};
dbohdan = {
email = "dbohdan@dbohdan.com";
github = "dbohdan";
@@ -1531,6 +1541,11 @@
github = "eqyiel";
name = "Ruben Maher";
};
eraserhd = {
email = "jason.m.felice@gmail.com";
github = "eraserhd";
name = "Jason Felice";
};
ericbmerritt = {
email = "eric@afiniate.com";
github = "ericbmerritt";
2 changes: 2 additions & 0 deletions nixos/modules/misc/ids.nix
Original file line number Diff line number Diff line change
@@ -339,6 +339,7 @@
rss2email = 312;
cockroachdb = 313;
zoneminder = 314;
paperless = 315;

# When adding a uid, make sure it doesn't match an existing gid. And don't use uids above 399!

@@ -638,6 +639,7 @@
rss2email = 312;
cockroachdb = 313;
zoneminder = 314;
paperless = 315;

# When adding a gid, make sure it doesn't match an existing
# uid. Users and groups with the same name should have equal
1 change: 1 addition & 0 deletions nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
@@ -435,6 +435,7 @@
./services/misc/octoprint.nix
./services/misc/osrm.nix
./services/misc/packagekit.nix
./services/misc/paperless.nix
./services/misc/parsoid.nix
./services/misc/phd.nix
./services/misc/plex.nix
33 changes: 23 additions & 10 deletions nixos/modules/security/rngd.nix
Original file line number Diff line number Diff line change
@@ -2,20 +2,30 @@

with lib;

let
cfg = config.security.rngd;
in
{
options = {
security.rngd.enable = mkOption {
type = types.bool;
default = true;
description = ''
Whether to enable the rng daemon, which adds entropy from
hardware sources of randomness to the kernel entropy pool when
available.
'';
security.rngd = {
enable = mkOption {
type = types.bool;
default = true;
description = ''
Whether to enable the rng daemon, which adds entropy from
hardware sources of randomness to the kernel entropy pool when
available.
'';
};
debug = mkOption {
type = types.bool;
default = false;
description = "Whether to enable debug output (-d).";
};
};
};

config = mkIf config.security.rngd.enable {
config = mkIf cfg.enable {
services.udev.extraRules = ''
KERNEL=="random", TAG+="systemd"
SUBSYSTEM=="cpu", ENV{MODALIAS}=="cpu:type:x86,*feature:*009E*", TAG+="systemd", ENV{SYSTEMD_WANTS}+="rngd.service"
@@ -29,7 +39,10 @@ with lib;

description = "Hardware RNG Entropy Gatherer Daemon";

serviceConfig.ExecStart = "${pkgs.rng-tools}/sbin/rngd -f";
serviceConfig = {
ExecStart = "${pkgs.rng-tools}/sbin/rngd -f"
+ optionalString cfg.debug " -d";
};
};
};
}
6 changes: 0 additions & 6 deletions nixos/modules/services/misc/jellyfin.nix
Original file line number Diff line number Diff line change
@@ -48,12 +48,6 @@ in
jellyfin = {};
};

assertions = [
{
assertion = !config.services.emby.enable;
message = "Emby and Jellyfin are incompatible, you cannot enable both";
}
];
};

meta.maintainers = with lib.maintainers; [ minijackson ];
185 changes: 185 additions & 0 deletions nixos/modules/services/misc/paperless.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
{ config, pkgs, lib, ... }:

with lib;
let
cfg = config.services.paperless;

defaultUser = "paperless";

manage = cfg.package.withConfig {
config = {
PAPERLESS_CONSUMPTION_DIR = cfg.consumptionDir;
PAPERLESS_INLINE_DOC = "true";
PAPERLESS_DISABLE_LOGIN = "true";
} // cfg.extraConfig;
inherit (cfg) dataDir ocrLanguages;
paperlessPkg = cfg.package;
};
in
{
options.services.paperless = {
enable = mkOption {
type = lib.types.bool;
default = false;
description = ''
Enable Paperless.
When started, the Paperless database is automatically created if it doesn't
exist and updated if the Paperless package has changed.
Both tasks are achieved by running a Django migration.
'';
};

dataDir = mkOption {
type = types.str;
default = "/var/lib/paperless";
description = "Directory to store the Paperless data.";
};

consumptionDir = mkOption {
type = types.str;
default = "${cfg.dataDir}/consume";
defaultText = "\${dataDir}/consume";
description = "Directory from which new documents are imported.";
};

consumptionDirIsPublic = mkOption {
type = types.bool;
default = false;
description = "Whether all users can write to the consumption dir.";
};

ocrLanguages = mkOption {
type = with types; nullOr (listOf string);
default = null;
description = ''
Languages available for OCR via Tesseract, specified as
<literal>ISO 639-2/T</literal> language codes.
If unset, defaults to all available languages.
'';
example = [ "eng" "spa" "jpn" ];
};

address = mkOption {
type = types.str;
default = "localhost";
description = "Server listening address.";
};

port = mkOption {
type = types.int;
default = 28981;
description = "Server port to listen on.";
};

extraConfig = mkOption {
type = types.attrs;
default = {};
description = ''
Extra paperless config options.
The config values are evaluated as double-quoted Bash string literals.
See <literal>paperless-src/paperless.conf.example</literal> for available options.
To enable user authentication, set <literal>PAPERLESS_DISABLE_LOGIN = "false"</literal>
and run the shell command <literal>$dataDir/paperless-manage createsuperuser</literal>.
To define secret options without storing them in /nix/store, use the following pattern:
<literal>PAPERLESS_PASSPHRASE = "$(&lt; /etc/my_passphrase_file)"</literal>
'';
example = literalExample ''
{
PAPERLESS_OCR_LANGUAGE = "deu";
}
'';
};

user = mkOption {
type = types.str;
default = defaultUser;
description = "User under which Paperless runs.";
};

package = mkOption {
type = types.package;
default = pkgs.paperless;
defaultText = "pkgs.paperless";
description = "The Paperless package to use.";
};

manage = mkOption {
type = types.package;
readOnly = true;
default = manage;
description = ''
A script to manage the Paperless instance.
It wraps Django's manage.py and is also available at
<literal>$dataDir/manage-paperless</literal>
'';
};
};

config = mkIf cfg.enable {

systemd.tmpfiles.rules = [
"d '${cfg.dataDir}' - ${cfg.user} ${cfg.user} - -"
] ++ (optional cfg.consumptionDirIsPublic
"d '${cfg.consumptionDir}' 777 ${cfg.user} ${cfg.user} - -"
# If the consumption dir is not created here, it's automatically created by
# 'manage' with the default permissions.
);

systemd.services.paperless-consumer = {
description = "Paperless document consumer";
serviceConfig = {
User = cfg.user;
ExecStart = "${manage} document_consumer";
Restart = "always";
};
after = [ "systemd-tmpfiles-setup.service" ];
wantedBy = [ "multi-user.target" ];
preStart = ''
if [[ $(readlink ${cfg.dataDir}/paperless-manage) != ${manage} ]]; then
ln -sf ${manage} ${cfg.dataDir}/paperless-manage
fi
${manage.setupEnv}
# Auto-migrate on first run or if the package has changed
versionFile="$PAPERLESS_DBDIR/src-version"
if [[ $(cat "$versionFile" 2>/dev/null) != ${cfg.package} ]]; then
python $paperlessSrc/manage.py migrate
echo ${cfg.package} > "$versionFile"
fi
'';
};

systemd.services.paperless-server = {
description = "Paperless document server";
serviceConfig = {
User = cfg.user;
ExecStart = "${manage} runserver --noreload ${cfg.address}:${toString cfg.port}";
Restart = "always";
};
# Bind to `paperless-consumer` so that the server never runs
# during migrations
bindsTo = [ "paperless-consumer.service" ];
after = [ "paperless-consumer.service" ];
wantedBy = [ "multi-user.target" ];
};

users = optionalAttrs (cfg.user == defaultUser) {
users = [{
name = defaultUser;
group = defaultUser;
uid = config.ids.uids.paperless;
home = cfg.dataDir;
}];

groups = [{
name = defaultUser;
gid = config.ids.gids.paperless;
}];
};
};
}
5 changes: 5 additions & 0 deletions nixos/modules/services/x11/display-managers/lightdm.nix
Original file line number Diff line number Diff line change
@@ -189,6 +189,11 @@ in
config = mkIf cfg.enable {

assertions = [
{ assertion = xcfg.enable;
message = ''
LightDM requires services.xserver.enable to be true
'';
}
{ assertion = cfg.autoLogin.enable -> cfg.autoLogin.user != null;
message = ''
LightDM auto-login requires services.xserver.displayManager.lightdm.autoLogin.user to be set
9 changes: 7 additions & 2 deletions nixos/modules/services/x11/display-managers/sddm.nix
Original file line number Diff line number Diff line change
@@ -195,6 +195,11 @@ in
config = mkIf cfg.enable {

assertions = [
{ assertion = xcfg.enable;
message = ''
SDDM requires services.xserver.enable to be true
'';
}
{ assertion = cfg.autoLogin.enable -> cfg.autoLogin.user != null;
message = ''
SDDM auto-login requires services.xserver.displayManager.sddm.autoLogin.user to be set
@@ -264,8 +269,8 @@ in
};

environment.etc."sddm.conf".source = cfgFile;
environment.pathsToLink = [
"/share/sddm"
environment.pathsToLink = [
"/share/sddm"
];

users.groups.sddm.gid = config.ids.gids.sddm;
1 change: 1 addition & 0 deletions nixos/tests/all-tests.nix
Original file line number Diff line number Diff line change
@@ -189,6 +189,7 @@ in
pam-oath-login = handleTest ./pam-oath-login.nix {};
pam-u2f = handleTest ./pam-u2f.nix {};
pantheon = handleTest ./pantheon.nix {};
paperless = handleTest ./paperless.nix {};
peerflix = handleTest ./peerflix.nix {};
pgjwt = handleTest ./pgjwt.nix {};
pgmanage = handleTest ./pgmanage.nix {};
Loading