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: bc471c14dba2
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: 4de58b617bf5
Choose a head ref

Commits on Nov 17, 2019

  1. Copy the full SHA
    800f280 View commit details
  2. saga: remove jasper from inputs

    It is unused since v2.2.6 (2016)
    https://sourceforge.net/p/saga-gis/bugs/224/
    c0bw3b committed Nov 17, 2019
    Copy the full SHA
    9315000 View commit details
  3. digikam: disable JPEG2000 support by default

    jasper has several unfixed CVE and seems unmaintained
    Upstream open bug to replace it with OpenJPEG is:
    https://bugs.kde.org/show_bug.cgi?id=364231
    c0bw3b committed Nov 17, 2019
    Copy the full SHA
    acd9058 View commit details
  4. k2pdfopt: disable JPEG2000 support by default

    jasper has unfixed CVE
    c0bw3b committed Nov 17, 2019
    Copy the full SHA
    ab8889d View commit details
  5. kodi: drop jasper dependency

    Unused since:
    xbmc/xbmc@424c513
    c0bw3b committed Nov 17, 2019
    Copy the full SHA
    0a443f4 View commit details
  6. Copy the full SHA
    9569273 View commit details

Commits on Nov 19, 2019

  1. darwin.cctools: 895 -> 927.0.2

    Update the version of `cctools` on darwin.  The older version fails
    to work on some modern packages, such as `bazel 1.1`.
    Dave Nicponski authored and Dave Nicponski committed Nov 19, 2019
    Copy the full SHA
    7b77c09 View commit details
  2. Copy the full SHA
    6cff4ce View commit details
  3. llvm/compiler-rt: default to compatible scudo options

    Kyle Copperfield committed Nov 19, 2019
    Copy the full SHA
    19adae3 View commit details
  4. Copy the full SHA
    a3e0084 View commit details
  5. gdk-pixbuf: disable JPEG2000 support

    jasper has unfixed CVE
    Upstream has no plan to switch to openjpeg AFAICT
    c0bw3b committed Nov 19, 2019
    Copy the full SHA
    9aa6232 View commit details

Commits on Nov 20, 2019

  1. Copy the full SHA
    75348fa View commit details
  2. Copy the full SHA
    652a178 View commit details
  3. Copy the full SHA
    329270e View commit details
  4. libraw: disable JPEG2000 support by default

    jasper has many security issues and it's only used for some
    old Redcine cameras. See:
    LibRaw/LibRaw#69
    c0bw3b committed Nov 20, 2019
    Copy the full SHA
    9ee141e View commit details
  5. Copy the full SHA
    d2a536f View commit details
  6. opencv: disable jasper by default

    jasper has many unfixed CVEs, upstream disable its use by default
    opencv/opencv#14058
    c0bw3b committed Nov 20, 2019
    Copy the full SHA
    a13779a View commit details
  7. dcraw: mark as vulnerable

    c0bw3b committed Nov 20, 2019
    Copy the full SHA
    9a48332 View commit details
  8. jasper: mark as vulnerable

    Many memory issues remain unfixed or partially fixed:
    CVE-2018-18873 CVE-2018-19539 CVE-2018-19540 CVE-2018-19541
    CVE-2018-9252 CVE-2018-19542 CVE-2018-19543 CVE-2018-20570
    CVE-2018-20584 CVE-2018-20622 CVE-2018-9252
    
    Debian/Ubuntu, OpenSuSE and Gentoo removed it entirely. See:
    jasper-software/jasper#208
    c0bw3b committed Nov 20, 2019
    Copy the full SHA
    a0d335f View commit details

Commits on Nov 23, 2019

  1. perl: 5.30.0 -> 5.30.1

    volth committed Nov 23, 2019
    Copy the full SHA
    83bacb1 View commit details
  2. perlPackages.XMLParser: 2.46 -> 2.44

    volth committed Nov 23, 2019
    Copy the full SHA
    ca04f87 View commit details
  3. Copy the full SHA
    cdea5b4 View commit details
  4. Copy the full SHA
    a89074d View commit details
  5. Copy the full SHA
    84702be View commit details
  6. Copy the full SHA
    11584ef View commit details
  7. [cpan2nix] perlPackages.CryptX: 0.064 -> 0.066

    volth committed Nov 23, 2019
    Copy the full SHA
    70d32e8 View commit details
  8. Copy the full SHA
    4d16061 View commit details
  9. Copy the full SHA
    2722ef2 View commit details
  10. [cpan2nix] perlPackages.LogJournald: cleanup

    volth committed Nov 23, 2019
    Copy the full SHA
    6e0d164 View commit details
  11. Copy the full SHA
    7ff256c View commit details
  12. Copy the full SHA
    692ac00 View commit details
  13. Copy the full SHA
    834ed7c View commit details
  14. Copy the full SHA
    8cd84dd View commit details
  15. Copy the full SHA
    391e263 View commit details
  16. Copy the full SHA
    916f07b View commit details
  17. Copy the full SHA
    6795ca6 View commit details
  18. Copy the full SHA
    146a33f View commit details
  19. [cpan2nix] perlPackages.TestTime: 0.05 -> 0.08

    volth committed Nov 23, 2019
    Copy the full SHA
    de8088a View commit details
  20. Copy the full SHA
    09086de View commit details
  21. Copy the full SHA
    29e832c View commit details
  22. Copy the full SHA
    316649c View commit details
  23. Copy the full SHA
    fce9988 View commit details
  24. [cpan2nix] perlPackages.ack: v3.1.3 -> v3.2.0

    volth committed Nov 23, 2019
    Copy the full SHA
    c510bb4 View commit details
  25. Copy the full SHA
    ac57bfa View commit details
  26. Copy the full SHA
    8b369a5 View commit details
  27. [cpan2nix] perlPackages.EV: 4.27 -> 4.29

    volth committed Nov 23, 2019
    Copy the full SHA
    f6e5f88 View commit details
  28. [cpan2nix] perlPackages.HTTPDate: 6.02 -> 6.05

    volth committed Nov 23, 2019
    Copy the full SHA
    bcdc1be View commit details
  29. [cpan2nix] perlPackages.MySQLDiff: cleanup

    volth committed Nov 23, 2019
    Copy the full SHA
    b415f7a View commit details
  30. Copy the full SHA
    c224d9f View commit details
  31. Copy the full SHA
    b2a2058 View commit details
Showing with 2,427 additions and 1,712 deletions.
  1. +6 −0 nixos/doc/manual/release-notes/rl-2003.xml
  2. +181 −0 nixos/modules/services/hardware/upower.nix
  3. +64 −2 nixos/modules/tasks/filesystems/zfs.nix
  4. +1 −1 pkgs/applications/audio/cantata/default.nix
  5. +1 −1 pkgs/applications/audio/easytag/default.nix
  6. +1 −1 pkgs/applications/audio/opus-tools/default.nix
  7. +1 −1 pkgs/applications/audio/opusfile/default.nix
  8. +1 −1 pkgs/applications/audio/snd/default.nix
  9. +6 −6 pkgs/applications/editors/emacs-modes/org-generated.nix
  10. +1 −1 pkgs/applications/editors/flpsed/default.nix
  11. +1 −1 pkgs/applications/editors/yi/wrapper.nix
  12. +2 −2 pkgs/applications/gis/saga/default.nix
  13. +3 −3 pkgs/applications/graphics/digikam/default.nix
  14. +1 −1 pkgs/applications/graphics/mcomix/default.nix
  15. +1 −1 pkgs/applications/graphics/sxiv/default.nix
  16. +1 −1 pkgs/applications/misc/k2pdfopt/default.nix
  17. +2 −2 pkgs/applications/misc/nnn/default.nix
  18. +21 −6 pkgs/applications/misc/vifm/default.nix
  19. +1 −5 pkgs/applications/networking/browsers/chromium/common.nix
  20. +3 −6 pkgs/applications/networking/browsers/chromium/default.nix
  21. +385 −385 pkgs/applications/networking/browsers/firefox-bin/beta_sources.nix
  22. +385 −385 pkgs/applications/networking/browsers/firefox-bin/devedition_sources.nix
  23. +403 −373 pkgs/applications/networking/browsers/firefox-bin/release_sources.nix
  24. +1 −1 pkgs/applications/networking/browsers/firefox/common.nix
  25. +4 −5 pkgs/applications/networking/browsers/firefox/packages.nix
  26. +2 −2 pkgs/applications/networking/instant-messengers/signal-desktop/default.nix
  27. +1 −1 pkgs/applications/networking/mailreaders/imapfilter.nix
  28. +1 −1 pkgs/applications/networking/mailreaders/thunderbird-bin/default.nix
  29. +1 −1 pkgs/applications/science/misc/vite/default.nix
  30. +3 −2 pkgs/applications/version-management/git-and-tools/delta/default.nix
  31. +13 −3 pkgs/applications/version-management/git-and-tools/git/default.nix
  32. +2 −2 pkgs/applications/video/kodi/default.nix
  33. +1 −1 pkgs/applications/video/mkvtoolnix/default.nix
  34. +1 −1 pkgs/applications/video/mpv/default.nix
  35. +0 −2 pkgs/build-support/agda/default.nix
  36. +3 −3 pkgs/build-support/bintools-wrapper/default.nix
  37. +13 −11 pkgs/build-support/cc-wrapper/default.nix
  38. +1 −1 pkgs/data/fonts/cantarell-fonts/default.nix
  39. +2 −2 pkgs/desktops/gnome-3/core/adwaita-icon-theme/default.nix
  40. +1 −1 pkgs/desktops/xfce/default.nix
  41. +0 −27 pkgs/desktops/xfce/panel-plugins/xfce4-verve-plugin.nix
  42. +18 −0 pkgs/desktops/xfce/panel-plugins/xfce4-verve-plugin/default.nix
  43. +1 −1 pkgs/development/androidndk-pkgs/androidndk-pkgs.nix
  44. +2 −1 pkgs/development/compilers/gcc/4.8/default.nix
  45. +2 −1 pkgs/development/compilers/gcc/4.9/default.nix
  46. +2 −1 pkgs/development/compilers/gcc/5/default.nix
  47. +2 −1 pkgs/development/compilers/gcc/6/default.nix
  48. +2 −1 pkgs/development/compilers/gcc/7/default.nix
  49. +2 −1 pkgs/development/compilers/gcc/8/default.nix
  50. +2 −1 pkgs/development/compilers/gcc/9/default.nix
  51. +2 −1 pkgs/development/compilers/gcc/snapshot/default.nix
  52. +3 −2 pkgs/development/compilers/llvm/4/clang/default.nix
  53. +3 −2 pkgs/development/compilers/llvm/4/llvm.nix
  54. +3 −2 pkgs/development/compilers/llvm/5/clang/default.nix
  55. +3 −2 pkgs/development/compilers/llvm/5/llvm.nix
  56. +3 −2 pkgs/development/compilers/llvm/6/clang/default.nix
  57. +3 −2 pkgs/development/compilers/llvm/6/llvm.nix
  58. +3 −2 pkgs/development/compilers/llvm/7/clang/default.nix
  59. +4 −0 pkgs/development/compilers/llvm/7/compiler-rt.nix
  60. +3 −2 pkgs/development/compilers/llvm/7/llvm.nix
  61. +3 −2 pkgs/development/compilers/llvm/8/clang/default.nix
  62. +4 −0 pkgs/development/compilers/llvm/8/compiler-rt.nix
  63. +3 −2 pkgs/development/compilers/llvm/8/llvm.nix
  64. +4 −0 pkgs/development/compilers/llvm/9/compiler-rt.nix
  65. +1 −1 pkgs/development/compilers/orc/default.nix
  66. +12 −0 pkgs/development/haskell-modules/configuration-ghc-8.8.x.nix
  67. +6 −6 pkgs/development/interpreters/perl/default.nix
  68. +83 −0 pkgs/development/interpreters/python/manylinux/default.nix
  69. +3 −3 pkgs/development/interpreters/racket/default.nix
  70. +1 −1 pkgs/development/interpreters/racket/minimal.nix
  71. +1 −1 pkgs/development/libraries/agda/Agda-Sheaves/default.nix
  72. +1 −1 pkgs/development/libraries/agda/TotalParserCombinators/default.nix
  73. +1 −1 pkgs/development/libraries/agda/agda-base/default.nix
  74. +1 −1 pkgs/development/libraries/agda/agda-iowa-stdlib/default.nix
  75. +1 −1 pkgs/development/libraries/agda/agda-prelude/default.nix
  76. +1 −1 pkgs/development/libraries/agda/agda-stdlib/default.nix
  77. +1 −1 pkgs/development/libraries/agda/bitvector/default.nix
  78. +1 −1 pkgs/development/libraries/agda/categories/default.nix
  79. +1 −1 pkgs/development/libraries/agda/pretty/default.nix
  80. +1 −1 pkgs/development/libraries/enet/default.nix
  81. +1 −1 pkgs/development/libraries/ffmpeg-full/default.nix
  82. +1 −1 pkgs/development/libraries/ffmpeg/generic.nix
  83. +1 −1 pkgs/development/libraries/ffms/default.nix
  84. +2 −3 pkgs/development/libraries/gdk-pixbuf/default.nix
  85. +1 −1 pkgs/development/libraries/gdk-pixbuf/setup-hook.sh
  86. +3 −0 pkgs/development/libraries/gegl/4.0.nix
  87. +1 −1 pkgs/development/libraries/giflib/default.nix
  88. +2 −2 pkgs/development/libraries/glib/default.nix
  89. +1 −1 pkgs/development/libraries/glm/default.nix
  90. +1 −1 pkgs/development/libraries/gloox/default.nix
  91. +1 −1 pkgs/development/libraries/gpgme/default.nix
  92. +15 −5 pkgs/development/libraries/grib-api/default.nix
  93. +1 −1 pkgs/development/libraries/gtkspell/3.nix
  94. +1 −1 pkgs/development/libraries/hunspell/default.nix
  95. +5 −0 pkgs/development/libraries/jasper/default.nix
  96. +2 −2 pkgs/development/libraries/jsoncpp/default.nix
  97. +1 −1 pkgs/development/libraries/libaal/default.nix
  98. +1 −1 pkgs/development/libraries/libao/default.nix
  99. +3 −3 pkgs/development/libraries/libftdi/1.x.nix
  100. +1 −1 pkgs/development/libraries/libgpg-error/default.nix
  101. +14 −4 pkgs/development/libraries/libicns/default.nix
  102. +1 −1 pkgs/development/libraries/libid3tag/default.nix
  103. +2 −2 pkgs/development/libraries/libidn2/default.nix
  104. +2 −2 pkgs/development/libraries/libmbim/default.nix
  105. +1 −1 pkgs/development/libraries/libmpeg2/default.nix
  106. +1 −1 pkgs/development/libraries/libpng/12.nix
  107. +1 −1 pkgs/development/libraries/libpng/default.nix
  108. +5 −2 pkgs/development/libraries/libraw/default.nix
  109. +2 −2 pkgs/development/libraries/libseccomp/default.nix
  110. +4 −3 pkgs/development/libraries/libtermkey/default.nix
  111. +4 −3 pkgs/development/libraries/nss/default.nix
  112. +1 −1 pkgs/development/libraries/oniguruma/default.nix
  113. +1 −1 pkgs/development/libraries/opencv/3.x.nix
  114. +1 −1 pkgs/development/libraries/opencv/4.x.nix
  115. +1 −1 pkgs/development/libraries/opencv/default.nix
  116. +1 −1 pkgs/development/libraries/openscenegraph/default.nix
  117. +2 −2 pkgs/development/libraries/pcre2/default.nix
  118. +5 −1 pkgs/development/libraries/physics/rivet/default.nix
  119. +1 −1 pkgs/development/libraries/science/math/QuadProgpp/default.nix
  120. +1 −1 pkgs/development/libraries/science/math/or-tools/default.nix
  121. +3 −3 pkgs/development/libraries/silgraphite/graphite2.nix
  122. +1 −1 pkgs/development/libraries/slang/default.nix
  123. +1 −1 pkgs/development/libraries/sphinxbase/default.nix
  124. +6 −8 pkgs/development/ocaml-modules/git/default.nix
  125. +2 −2 pkgs/development/ocaml-modules/nocrypto/default.nix
  126. +10 −0 pkgs/development/python-modules/Cython/default.nix
  127. +14 −4 pkgs/development/python-modules/gunicorn/default.nix
  128. +1 −1 pkgs/development/python-modules/livestreamer/default.nix
  129. +2 −2 pkgs/development/tools/build-managers/cmake/default.nix
  130. +8 −2 pkgs/development/tools/buildah/default.nix
  131. +33 −0 pkgs/development/tools/buildah/disable-go-module-mode.patch
  132. +5 −4 pkgs/development/tools/misc/binutils/default.nix
  133. +8 −2 pkgs/development/tools/misc/gdb/default.nix
  134. +4 −0 pkgs/development/tools/phantomjs2/default.nix
  135. +1 −1 pkgs/development/tools/profiling/EZTrace/default.nix
  136. +1 −1 pkgs/games/extremetuxracer/default.nix
  137. +1 −1 pkgs/games/super-tux-kart/default.nix
  138. +1 −1 pkgs/games/tibia/default.nix
  139. +1 −1 pkgs/misc/drivers/xboxdrv/default.nix
  140. +1 −1 pkgs/misc/emulators/hatari/default.nix
  141. +1 −1 pkgs/misc/emulators/ppsspp/default.nix
  142. +2 −2 pkgs/os-specific/darwin/apple-sdk/default.nix
  143. +2 −1 pkgs/os-specific/darwin/binutils/default.nix
  144. +0 −22 pkgs/os-specific/darwin/cctools/apfs.patch
  145. +5 −7 pkgs/os-specific/darwin/cctools/ld-rpath-nonfinal.patch
  146. +5 −11 pkgs/os-specific/darwin/cctools/port.nix
  147. +6 −5 pkgs/os-specific/darwin/libtapi/default.nix
  148. +1 −1 pkgs/os-specific/linux/audit/default.nix
  149. +1 −1 pkgs/os-specific/linux/hdparm/default.nix
  150. +2 −2 pkgs/os-specific/linux/iproute/default.nix
  151. +1 −1 pkgs/os-specific/linux/libaio/default.nix
  152. +3 −3 pkgs/os-specific/linux/systemd/default.nix
  153. +2 −0 pkgs/os-specific/linux/upower/default.nix
  154. +2 −2 pkgs/servers/matrix-synapse/default.nix
  155. +2 −2 pkgs/servers/monitoring/loki/default.nix
  156. +1 −1 pkgs/servers/mpd/default.nix
  157. +1 −1 pkgs/tools/X11/xnee/default.nix
  158. +3 −3 pkgs/tools/admin/eksctl/default.nix
  159. +4 −3 pkgs/tools/admin/lego/default.nix
  160. +9 −2 pkgs/tools/graphics/dcraw/default.nix
  161. +1 −1 pkgs/tools/graphics/gifsicle/default.nix
  162. +1 −1 pkgs/tools/misc/cloc/default.nix
  163. +174 −39 pkgs/tools/misc/eva/Cargo.lock.patch
  164. +14 −6 pkgs/tools/misc/eva/default.nix
  165. +1 −1 pkgs/tools/misc/rlwrap/default.nix
  166. +7 −0 pkgs/tools/misc/vdirsyncer/default.nix
  167. +3 −3 pkgs/tools/misc/vivid/default.nix
  168. +1 −1 pkgs/tools/misc/youtube-dl/default.nix
  169. +1 −1 pkgs/tools/networking/babeld/default.nix
  170. +2 −2 pkgs/tools/networking/unbound/default.nix
  171. +2 −2 pkgs/tools/security/gnupg/22.nix
  172. +3 −3 pkgs/tools/security/pcsclite/default.nix
  173. +1 −1 pkgs/tools/security/pius/default.nix
  174. +1 −1 pkgs/tools/security/stoken/default.nix
  175. +8 −1 pkgs/top-level/all-packages.nix
  176. +239 −180 pkgs/top-level/perl-packages.nix
6 changes: 6 additions & 0 deletions nixos/doc/manual/release-notes/rl-2003.xml
Original file line number Diff line number Diff line change
@@ -77,6 +77,12 @@
be set if the hostname of the node should be non default.
</para>
</listitem>
<listitem>
<para>
UPower's configuration is now managed by NixOS and can be customized
via <option>services.upower</option>.
</para>
</listitem>
</itemizedlist>

</section>
181 changes: 181 additions & 0 deletions nixos/modules/services/hardware/upower.nix
Original file line number Diff line number Diff line change
@@ -37,6 +37,172 @@ in
'';
};

enableWattsUpPro = mkOption {
type = types.bool;
default = false;
description = ''
Enable the Watts Up Pro device.
The Watts Up Pro contains a generic FTDI USB device without a specific
vendor and product ID. When we probe for WUP devices, we can cause
the user to get a perplexing "Device or resource busy" error when
attempting to use their non-WUP device.
The generic FTDI device is known to also be used on:
<itemizedlist>
<listitem><para>Sparkfun FT232 breakout board</para></listitem>
<listitem><para>Parallax Propeller</para></listitem>
</itemizedlist>
'';
};

noPollBatteries = mkOption {
type = types.bool;
default = false;
description = ''
Don't poll the kernel for battery level changes.
Some hardware will send us battery level changes through
events, rather than us having to poll for it. This option
allows disabling polling for hardware that sends out events.
'';
};

ignoreLid = mkOption {
type = types.bool;
default = false;
description = ''
Do we ignore the lid state
Some laptops are broken. The lid state is either inverted, or stuck
on or off. We can't do much to fix these problems, but this is a way
for users to make the laptop panel vanish, a state that might be used
by a couple of user-space daemons. On Linux systems, see also
logind.conf(5).
'';
};

usePercentageForPolicy = mkOption {
type = types.bool;
default = true;
description = ''
Policy for warnings and action based on battery levels
Whether battery percentage based policy should be used. The default
is to use the percentage, which
should work around broken firmwares. It is also more reliable than
the time left (frantically saving all your files is going to use more
battery than letting it rest for example).
'';
};

percentageLow = mkOption {
type = types.ints.unsigned;
default = 10;
description = ''
When <literal>usePercentageForPolicy</literal> is
<literal>true</literal>, the levels at which UPower will consider the
battery low.
This will also be used for batteries which don't have time information
such as that of peripherals.
If any value (of <literal>percentageLow</literal>,
<literal>percentageCritical</literal> and
<literal>percentageAction</literal>) is invalid, or not in descending
order, the defaults will be used.
'';
};

percentageCritical = mkOption {
type = types.ints.unsigned;
default = 3;
description = ''
When <literal>usePercentageForPolicy</literal> is
<literal>true</literal>, the levels at which UPower will consider the
battery critical.
This will also be used for batteries which don't have time information
such as that of peripherals.
If any value (of <literal>percentageLow</literal>,
<literal>percentageCritical</literal> and
<literal>percentageAction</literal>) is invalid, or not in descending
order, the defaults will be used.
'';
};

percentageAction = mkOption {
type = types.ints.unsigned;
default = 2;
description = ''
When <literal>usePercentageForPolicy</literal> is
<literal>true</literal>, the levels at which UPower will take action
for the critical battery level.
This will also be used for batteries which don't have time information
such as that of peripherals.
If any value (of <literal>percentageLow</literal>,
<literal>percentageCritical</literal> and
<literal>percentageAction</literal>) is invalid, or not in descending
order, the defaults will be used.
'';
};

timeLow = mkOption {
type = types.ints.unsigned;
default = 1200;
description = ''
When <literal>usePercentageForPolicy</literal> is
<literal>false</literal>, the time remaining at which UPower will
consider the battery low.
If any value (of <literal>timeLow</literal>,
<literal>timeCritical</literal> and <literal>timeAction</literal>) is
invalid, or not in descending order, the defaults will be used.
'';
};

timeCritical = mkOption {
type = types.ints.unsigned;
default = 300;
description = ''
When <literal>usePercentageForPolicy</literal> is
<literal>false</literal>, the time remaining at which UPower will
consider the battery critical.
If any value (of <literal>timeLow</literal>,
<literal>timeCritical</literal> and <literal>timeAction</literal>) is
invalid, or not in descending order, the defaults will be used.
'';
};

timeAction = mkOption {
type = types.ints.unsigned;
default = 120;
description = ''
When <literal>usePercentageForPolicy</literal> is
<literal>false</literal>, the time remaining at which UPower will
take action for the critical battery level.
If any value (of <literal>timeLow</literal>,
<literal>timeCritical</literal> and <literal>timeAction</literal>) is
invalid, or not in descending order, the defaults will be used.
'';
};

criticalPowerAction = mkOption {
type = types.enum [ "PowerOff" "Hibernate" "HybridSleep" ];
default = "HybridSleep";
description = ''
The action to take when <literal>timeAction</literal> or
<literal>percentageAction</literal> has been reached for the batteries
(UPS or laptop batteries) supplying the computer
'';
};

};

};
@@ -54,6 +220,21 @@ in

systemd.packages = [ cfg.package ];

environment.etc."UPower/UPower.conf".text = generators.toINI {} {
UPower = {
EnableWattsUpPro = cfg.enableWattsUpPro;
NoPollBatteries = cfg.noPollBatteries;
IgnoreLid = cfg.ignoreLid;
UsePercentageForPolicy = cfg.usePercentageForPolicy;
PercentageLow = cfg.percentageLow;
PercentageCritical = cfg.percentageCritical;
PercentageAction = cfg.percentageAction;
TimeLow = cfg.timeLow;
TimeCritical = cfg.timeCritical;
TimeAction = cfg.timeAction;
CriticalPowerAction = cfg.criticalPowerAction;
};
};
};

}
66 changes: 64 additions & 2 deletions nixos/modules/tasks/filesystems/zfs.nix
Original file line number Diff line number Diff line change
@@ -12,6 +12,7 @@ let
cfgSnapFlags = cfgSnapshots.flags;
cfgScrub = config.services.zfs.autoScrub;
cfgTrim = config.services.zfs.trim;
cfgZED = config.services.zfs.zed;

inInitrd = any (fs: fs == "zfs") config.boot.initrd.supportedFilesystems;
inSystem = any (fs: fs == "zfs") config.boot.supportedFilesystems;
@@ -87,6 +88,17 @@ let
}
'';

zedConf = generators.toKeyValue {
mkKeyValue = generators.mkKeyValueDefault {
mkValueString = v:
if isInt v then toString v
else if isString v then "\"${v}\""
else if true == v then "1"
else if false == v then "0"
else if isList v then "\"" + (concatStringsSep " " v) + "\""
else err "this value is" (toString v);
} "=";
} cfgZED.settings;
in

{
@@ -312,6 +324,32 @@ in
'';
};
};

services.zfs.zed.settings = mkOption {
type = with types; attrsOf (oneOf [ str int bool (listOf str) ]);
example = literalExample ''
{
ZED_DEBUG_LOG = "/tmp/zed.debug.log";
ZED_EMAIL_ADDR = [ "root" ];
ZED_EMAIL_PROG = "mail";
ZED_EMAIL_OPTS = "-s '@SUBJECT@' @ADDRESS@";
ZED_NOTIFY_INTERVAL_SECS = 3600;
ZED_NOTIFY_VERBOSE = false;
ZED_USE_ENCLOSURE_LEDS = true;
ZED_SCRUB_AFTER_RESILVER = false;
}
'';
description = ''
ZFS Event Daemon /etc/zfs/zed.d/zed.rc content
See
<citerefentry><refentrytitle>zed</refentrytitle><manvolnum>8</manvolnum></citerefentry>
for details on ZED and the scripts in /etc/zfs/zed.d to find the possible variables
'';
};
};

###### implementation
@@ -389,8 +427,32 @@ in
zfsSupport = true;
};

environment.etc."zfs/zed.d".source = "${packages.zfsUser}/etc/zfs/zed.d/";
environment.etc."zfs/zpool.d".source = "${packages.zfsUser}/etc/zfs/zpool.d/";
services.zfs.zed.settings = {
ZED_EMAIL_PROG = mkDefault "${pkgs.mailutils}/bin/mail";
};

environment.etc = genAttrs
(map
(file: "zfs/zed.d/${file}")
[
"all-syslog.sh"
"pool_import-led.sh"
"resilver_finish-start-scrub.sh"
"statechange-led.sh"
"vdev_attach-led.sh"
"zed-functions.sh"
"data-notify.sh"
"resilver_finish-notify.sh"
"scrub_finish-notify.sh"
"statechange-notify.sh"
"vdev_clear-led.sh"
]
)
(file: { source = "${packages.zfsUser}/etc/${file}"; })
// {
"zfs/zed.d/zed.rc".text = zedConf;
"zfs/zpool.d".source = "${packages.zfsUser}/etc/zfs/zpool.d/";
};

system.fsPackages = [ packages.zfsUser ]; # XXX: needed? zfs doesn't have (need) a fsck
environment.systemPackages = [ packages.zfsUser ]
2 changes: 1 addition & 1 deletion pkgs/applications/audio/cantata/default.nix
Original file line number Diff line number Diff line change
@@ -80,7 +80,7 @@ in mkDerivation {
homepage = https://github.com/cdrummond/cantata;
description = "A graphical client for MPD";
license = licenses.gpl3;
maintainers = with maintainers; [ fuuzetsu peterhoeg ];
maintainers = with maintainers; [ peterhoeg ];
# Technically Cantata can run on Windows so if someone wants to
# bother figuring that one out, be my guest.
platforms = platforms.linux;
2 changes: 1 addition & 1 deletion pkgs/applications/audio/easytag/default.nix
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@ in stdenv.mkDerivation rec {
description = "View and edit tags for various audio files";
homepage = https://wiki.gnome.org/Apps/EasyTAG;
license = licenses.gpl2Plus;
maintainers = with maintainers; [ fuuzetsu ];
maintainers = with maintainers; [ ];
platforms = platforms.linux;
};
}
2 changes: 1 addition & 1 deletion pkgs/applications/audio/opus-tools/default.nix
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
description = "Tools to work with opus encoded audio streams";
homepage = http://www.opus-codec.org/;
license = stdenv.lib.licenses.bsd2;
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
maintainers = with stdenv.lib.maintainers; [ ];
platforms = with stdenv.lib.platforms; unix;
};
}
2 changes: 1 addition & 1 deletion pkgs/applications/audio/opusfile/default.nix
Original file line number Diff line number Diff line change
@@ -18,6 +18,6 @@ stdenv.mkDerivation rec {
homepage = http://www.opus-codec.org/;
license = licenses.bsd3;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ fuuzetsu ];
maintainers = with maintainers; [ ];
};
}
2 changes: 1 addition & 1 deletion pkgs/applications/audio/snd/default.nix
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
homepage = http://ccrma.stanford.edu/software/snd;
platforms = stdenv.lib.platforms.linux;
license = stdenv.lib.licenses.free;
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
maintainers = with stdenv.lib.maintainers; [ ];
};


12 changes: 6 additions & 6 deletions pkgs/applications/editors/emacs-modes/org-generated.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkgs/applications/editors/flpsed/default.nix
Original file line number Diff line number Diff line change
@@ -22,6 +22,6 @@ stdenv.mkDerivation rec {
homepage = http://flpsed.org/flpsed.html;
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ fuuzetsu ];
maintainers = with maintainers; [ ];
};
}
2 changes: 1 addition & 1 deletion pkgs/applications/editors/yi/wrapper.nix
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ stdenv.mkDerivation {
description = "Allows Yi to find libraries and the compiler easily";
# This wrapper and wrapper only is under PD
license = licenses.publicDomain;
maintainers = with maintainers; [ fuuzetsu ];
maintainers = with maintainers; [ ];
};

}
Loading