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: 8d56f2472e47
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: c68f58d95c0e
Choose a head ref

Commits on Jun 10, 2019

  1. Copy the full SHA
    47be73c View commit details

Commits on Jun 26, 2019

  1. Copy the full SHA
    0f2f44c View commit details

Commits on Jul 15, 2019

  1. chromium: Fix running with --use-gl=egl.

    When Chromium is using EGL, it dlopen's libGLESv2. Before this fix, this failed
    with a not-found error. Fix it by adding libGL to the RUNPATH of the binary.
    
    This problem does not have a visible impact on typical desktop system because
    Chromium uses GLX by default. It only matters when Chromium is started with
    --use-gl=egl (which makes it use OpenGL ES via EGL instead of desktop OpenGL
    via GLX), and probably on certain embedded systems which only support OpenGL
    ES.
    
    With this fix, Chromium runs fine for me with --use-gl=egl and the NVidia
    driver, and the about:gpu page indicates that it is indeed using OpenGL ES and
    EGL.
    ambrop72 committed Jul 15, 2019
    Copy the full SHA
    6a0a073 View commit details

Commits on Jul 24, 2019

  1. Copy the full SHA
    69423bd View commit details
  2. hunspellDicts: add aliases for each dictionary

    This adds LANG aliases for each dictionary. This makes things a little
    easier and expected. For instance, you get an error message from
    hunspell like:
    
      Can't open affix or dictionary files for dictionary named "en_US".
    
    and you can resolve it by running
    
      nix-env -iA nixpkgs.hunspellDicts.en_US
    matthewbauer committed Jul 24, 2019
    Copy the full SHA
    ed06097 View commit details

Commits on Jul 25, 2019

  1. vimPlugins: update plugins

    tmplt committed Jul 25, 2019
    Copy the full SHA
    2b29c08 View commit details
  2. Copy the full SHA
    b617a8a View commit details
  3. Copy the full SHA
    cdd0a8d View commit details
  4. Copy the full SHA
    a18fcd9 View commit details

Commits on Jul 27, 2019

  1. snscrape: 0.2.0 -> 0.3.0

    ivan committed Jul 27, 2019
    Copy the full SHA
    242e3b3 View commit details
  2. llvmPackages_8.clang: bare-metal driver linker fix

    Clang passes an incorrect -l linker flag for compiler-rt.
    
    See https://reviews.llvm.org/D51899
    arcnmx committed Jul 27, 2019
    Copy the full SHA
    a5e2b76 View commit details
  3. llvmPackages_8.compiler-rt: bare-metal support

    Bare-metal targets require a few additional options to be set.
    arcnmx committed Jul 27, 2019
    Copy the full SHA
    24070da View commit details
  4. stdenv: correct cross CMAKE_SYSTEM_NAME

    As described in cmake cross instructions, CMAKE_SYSTEM_NAME should be
    set to "Generic" if there is no applicable OS:
    
    https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/CrossCompiling#setting-up-the-system-and-toolchain
    arcnmx committed Jul 27, 2019
    Copy the full SHA
    8cedc7f View commit details

Commits on Aug 1, 2019

  1. Copy the full SHA
    e7f5a19 View commit details

Commits on Aug 2, 2019

  1. Copy the full SHA
    dac4719 View commit details
  2. Copy the full SHA
    69d9700 View commit details

Commits on Aug 5, 2019

  1. mosquitto: 1.6.3 -> 1.6.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/mosquitto/versions
    r-ryantm committed Aug 5, 2019
    Copy the full SHA
    810921f View commit details
  2. cre2: 0.3.0 -> 0.3.6

    Jonathan Ringer committed Aug 5, 2019
    Copy the full SHA
    57dd2e8 View commit details

Commits on Aug 7, 2019

  1. chicken: fixes for chicken 5.1.0

    - fix incorrect binaryVersion
    - upgrade chicken-5 eggs
    - fix repository path
    corngood committed Aug 7, 2019
    Copy the full SHA
    f59f9f3 View commit details
  2. Copy the full SHA
    261691c View commit details
  3. nixos/hardware.deviceTree: new module

    Add support for custom device-tree files, and applying overlays to them.
    This is useful for supporting non-discoverable hardware, such as sensors
    attached to GPIO pins on a Raspberry Pi.
    kwohlfahrt committed Aug 7, 2019
    Copy the full SHA
    dd0a951 View commit details
  4. nixos/hardware.deviceTree: Move things around

    In response to comments, create a sub-folder for deviceTree packages
    (starting with rpi), and a top-level package for helpers.
    kwohlfahrt committed Aug 7, 2019
    Copy the full SHA
    28cf80a View commit details
  5. device-tree_rpi: fixup dtb names

    This is just as messy as it is for the kernel files. Maybe it should be
    done in the uboot boot-loader?
    kwohlfahrt committed Aug 7, 2019
    Copy the full SHA
    766e095 View commit details

Commits on Aug 11, 2019

  1. nixos/fuse: init

    Add a module for /etc/fuse.conf.
    Fixes #30923.
    primeos committed Aug 11, 2019
    Copy the full SHA
    2473d90 View commit details
  2. cargo-expand: 0.4.12 -> 0.4.13

    xrelkd committed Aug 11, 2019
    Copy the full SHA
    0a8e68b View commit details

Commits on Aug 12, 2019

  1. Fix the indentation

    Co-Authored-By: Alexey Shmalko <rasen.dubi@gmail.com>
    primeos and rasendubi authored Aug 12, 2019
    Copy the full SHA
    62f7711 View commit details
  2. installer: Don't run as root

    There's many reason why it is and is going to
    continue to be difficult to do this:
    
    1. All display-managers (excluding slim) default PAM rules
       disallow root auto login.
    
    2. We can't use wayland
    
    3. We have to use system-wide pulseaudio
    
    4. It could break applications in the session.
       This happened to dolphin in plasma5
       in the past.
    
    This is a growing technical debt, let's just use
    passwordless sudo.
    worldofpeace committed Aug 12, 2019
    Copy the full SHA
    397c7d2 View commit details
  3. gparted: correct polkit support

    Use wrapGAppsHook as well
    worldofpeace committed Aug 12, 2019
    Copy the full SHA
    7b30064 View commit details
  4. gparted: add adwaita-icon-theme

    This adds the icon theme to XDG_DATA_DIRS.
    It doesn't appear Plasma5 is properly configured for gtk
    apps so this works around there being no icon theme installed
    for it.
    worldofpeace committed Aug 12, 2019
    Copy the full SHA
    15f5535 View commit details
  5. Copy the full SHA
    2e6a16f View commit details
  6. Copy the full SHA
    8adaae2 View commit details

Commits on Aug 13, 2019

  1. s3ql: 2.26 -> 3.2

    mmahut committed Aug 13, 2019
    Copy the full SHA
    8b2d5f9 View commit details
  2. pythonPackages.pomegranate: 0.8.1 -> 0.11.0

    jbedo authored and veprbl committed Aug 13, 2019
    Copy the full SHA
    5859c5b View commit details
  3. pythonPackages.pyfaidx: init at 0.5.5.2

    jbedo authored and veprbl committed Aug 13, 2019
    Copy the full SHA
    4bb197f View commit details
  4. pythonPackages.cnvkit: init at 0.9.6

    jbedo authored and veprbl committed Aug 13, 2019
    Copy the full SHA
    f889214 View commit details
  5. ponyc: disabling stdlib tests

    mmahut committed Aug 13, 2019
    Copy the full SHA
    9130e5f View commit details
  6. Copy the full SHA
    e73473f View commit details
  7. Copy the full SHA
    beb547a View commit details
  8. Copy the full SHA
    15eb9f9 View commit details
  9. Copy the full SHA
    cd878d0 View commit details
  10. Copy the full SHA
    eaa81a4 View commit details
  11. Copy the full SHA
    ee2161c View commit details
  12. Copy the full SHA
    4adaa3c View commit details
  13. Copy the full SHA
    b45ecd0 View commit details
  14. Copy the full SHA
    f006c88 View commit details
  15. sourcehut: init

    builds-sr-ht: init at 0.45.13
    dispatch-sr-ht: init at 0.11.0
    git-sr-ht: init at 0.32.3
    hg-sr-ht: init at 0.13.0
    lists-sr-ht: init at 0.36.3
    man-sr-ht: init at 0.12.4
    meta-sr-ht: init at 0.34.3
    paste-sr-ht: init at 0.5.1
    todo-sr-ht: init at 0.46.8
    eadwu committed Aug 13, 2019
    Copy the full SHA
    a2ca6ef View commit details
  16. crc32c: init at 1.1.0

    andir committed Aug 13, 2019
    Copy the full SHA
    ac6adc8 View commit details
  17. Copy the full SHA
    1a72fe8 View commit details
  18. nginxStable: 1.16.0 -> 1.16.1

    Izorkin committed Aug 13, 2019
    Copy the full SHA
    aec55db View commit details
  19. Copy the full SHA
    83381be View commit details
Showing with 4,822 additions and 1,982 deletions.
  1. +17 −1 doc/functions/dockertools.xml
  2. +5 −0 maintainers/maintainer-list.nix
  3. +7 −6 nixos/doc/manual/installation/installing.xml
  4. +16 −0 nixos/doc/manual/man-nixos-enter.xml
  5. +15 −0 nixos/doc/manual/release-notes/rl-1909.xml
  6. +56 −0 nixos/modules/hardware/device-tree.nix
  7. +16 −3 nixos/modules/installer/cd-dvd/installation-cd-graphical-base.nix
  8. +11 −6 nixos/modules/installer/cd-dvd/installation-cd-graphical-kde.nix
  9. +17 −4 nixos/modules/installer/tools/nixos-enter.sh
  10. +2 −0 nixos/modules/module-list.nix
  11. +6 −0 nixos/modules/profiles/hardened.nix
  12. +20 −7 nixos/modules/profiles/installation-device.nix
  13. +37 −0 nixos/modules/programs/fuse.nix
  14. +3 −3 nixos/modules/services/network-filesystems/ipfs.nix
  15. +14 −6 nixos/modules/services/printing/cupsd.nix
  16. +10 −3 nixos/modules/services/x11/desktop-managers/gnome3.nix
  17. +1 −1 nixos/modules/services/x11/xserver.nix
  18. +2 −2 nixos/modules/system/activation/top-level.nix
  19. +2 −3 nixos/modules/system/boot/loader/generic-extlinux-compatible/extlinux-conf-builder.sh
  20. +1 −1 nixos/modules/system/boot/networkd.nix
  21. +3 −4 nixos/modules/virtualisation/amazon-image.nix
  22. +1 −5 nixos/tests/printing.nix
  23. +2 −2 pkgs/applications/altcoins/bitcoin.nix
  24. +8 −8 pkgs/applications/audio/fmit/default.nix
  25. +3 −5 pkgs/applications/audio/lollypop/default.nix
  26. +4 −11 pkgs/applications/audio/pamixer/default.nix
  27. +17 −0 pkgs/applications/editors/emacs-modes/melpa-packages.nix
  28. +1 −1 pkgs/applications/editors/rstudio/default.nix
  29. +3 −3 pkgs/applications/editors/vim/macvim.nix
  30. +6 −6 pkgs/applications/graphics/drawio/default.nix
  31. +14 −5 pkgs/applications/misc/wtf/default.nix
  32. +8 −1 pkgs/applications/networking/browsers/chromium/common.nix
  33. +373 −373 pkgs/applications/networking/browsers/firefox-bin/beta_sources.nix
  34. +373 −373 pkgs/applications/networking/browsers/firefox-bin/release_sources.nix
  35. +4 −4 pkgs/applications/networking/browsers/firefox/packages.nix
  36. +2 −1 pkgs/applications/networking/browsers/tor-browser-bundle-bin/default.nix
  37. +2 −2 pkgs/applications/networking/browsers/vivaldi/default.nix
  38. +22 −0 pkgs/applications/networking/cluster/prow/13918-fix-go-sum.patch
  39. +71 −0 pkgs/applications/networking/cluster/prow/default.nix
  40. +2 −2 pkgs/applications/networking/instant-messengers/signal-desktop/default.nix
  41. +2 −2 pkgs/applications/science/chemistry/molden/default.nix
  42. +1 −2 pkgs/applications/science/math/calc/default.nix
  43. +31 −0 pkgs/applications/science/math/calculix/calculix.patch
  44. +39 −0 pkgs/applications/science/math/calculix/default.nix
  45. +6 −8 pkgs/applications/science/math/gmsh/default.nix
  46. +17 −0 pkgs/applications/science/math/sage/dist-tests.nix
  47. +19 −0 pkgs/applications/science/math/sage/patches/configurationpy-error-verbose.patch
  48. +5 −1 pkgs/applications/science/math/sage/sage-src.nix
  49. +4 −0 pkgs/applications/science/math/sage/sage-tests.nix
  50. +2 −2 pkgs/applications/version-management/gitea/default.nix
  51. +2 −2 pkgs/applications/version-management/smartgithg/default.nix
  52. +60 −0 pkgs/applications/version-management/sourcehut/builds.nix
  53. +80 −0 pkgs/applications/version-management/sourcehut/core.nix
  54. +49 −0 pkgs/applications/version-management/sourcehut/default.nix
  55. +14 −0 pkgs/applications/version-management/sourcehut/disable-npm-install.patch
  56. +39 −0 pkgs/applications/version-management/sourcehut/dispatch.nix
  57. +55 −0 pkgs/applications/version-management/sourcehut/git.nix
  58. +39 −0 pkgs/applications/version-management/sourcehut/hg.nix
  59. +40 −0 pkgs/applications/version-management/sourcehut/lists.nix
  60. +37 −0 pkgs/applications/version-management/sourcehut/man.nix
  61. +48 −0 pkgs/applications/version-management/sourcehut/meta.nix
  62. +37 −0 pkgs/applications/version-management/sourcehut/paste.nix
  63. +55 −0 pkgs/applications/version-management/sourcehut/scm.nix
  64. +42 −0 pkgs/applications/version-management/sourcehut/todo.nix
  65. +54 −0 pkgs/applications/version-management/sourcehut/update.sh
  66. +43 −0 pkgs/applications/version-management/sourcehut/use-srht-path.patch
  67. +4 −4 pkgs/applications/video/smplayer/default.nix
  68. +3 −3 pkgs/applications/video/smtube/default.nix
  69. +2 −2 pkgs/applications/virtualization/podman/default.nix
  70. +4 −3 pkgs/build-support/docker/default.nix
  71. +15 −7 pkgs/build-support/rust/default.nix
  72. +2 −2 pkgs/data/misc/hackage/default.nix
  73. +3 −7 pkgs/development/compilers/chicken/5/chicken.nix
  74. +10 −10 pkgs/development/compilers/chicken/5/eggs.nix
  75. +1 −1 pkgs/development/compilers/chicken/5/setup-hook.sh
  76. +4 −4 pkgs/development/compilers/gambit/unstable.nix
  77. +4 −4 pkgs/development/compilers/gerbil/unstable.nix
  78. +3 −3 pkgs/development/compilers/ghc/8.8.1.nix
  79. +53 −0 pkgs/development/compilers/llvm/8/clang/compiler-rt-baremetal.patch
  80. +2 −0 pkgs/development/compilers/llvm/8/clang/default.nix
  81. +3 −0 pkgs/development/compilers/llvm/8/compiler-rt.nix
  82. +4 −0 pkgs/development/compilers/ponyc/default.nix
  83. +35 −0 pkgs/development/compilers/rust/clippy.nix
  84. +1 −0 pkgs/development/compilers/rust/default.nix
  85. +11 −7 pkgs/development/haskell-modules/configuration-common.nix
  86. +35 −35 pkgs/development/haskell-modules/configuration-hackage2nix.yaml
  87. +1 −0 pkgs/development/haskell-modules/configuration-nix.nix
  88. +835 −526 pkgs/development/haskell-modules/hackage-packages.nix
  89. +1 −1 pkgs/development/interpreters/erlang/R19.nix
  90. +1 −1 pkgs/development/interpreters/erlang/R20.nix
  91. +1 −1 pkgs/development/interpreters/erlang/R21.nix
  92. +1 −1 pkgs/development/interpreters/erlang/R22.nix
  93. +333 −200 pkgs/development/interpreters/wasmtime/cargo-lock.patch
  94. +5 −5 pkgs/development/interpreters/wasmtime/default.nix
  95. +24 −0 pkgs/development/libraries/crc32c/default.nix
  96. +4 −4 pkgs/development/libraries/cre2/default.nix
  97. +65 −0 pkgs/development/libraries/google-cloud-cpp/default.nix
  98. +37 −0 pkgs/development/libraries/hunspell/0001-Make-hunspell-look-in-XDG_DATA_DIRS-for-dictionaries.patch
  99. +2 −0 pkgs/development/libraries/hunspell/default.nix
  100. +37 −3 pkgs/development/libraries/hunspell/dictionaries.nix
  101. +3 −3 pkgs/development/libraries/libgphoto2/default.nix
  102. +7 −5 pkgs/development/libraries/qt-4.x/4.8/default.nix
  103. +33 −0 pkgs/development/libraries/qt-4.x/4.8/qt4-gcc6.patch
  104. +48 −0 pkgs/development/libraries/science/math/spooles/default.nix
  105. +188 −0 pkgs/development/libraries/science/math/spooles/spooles.patch
  106. +12 −6 pkgs/development/mobile/cocoapods/Gemfile-beta.lock
  107. +40 −9 pkgs/development/mobile/cocoapods/gemset-beta.nix
  108. +18 −0 pkgs/development/ocaml-modules/mmap/default.nix
  109. +6 −10 pkgs/development/ocaml-modules/zarith/default.nix
  110. +32 −0 pkgs/development/python-modules/aiosmtpd/default.nix
  111. +38 −0 pkgs/development/python-modules/asyncpg/default.nix
  112. +38 −0 pkgs/development/python-modules/atpublic/default.nix
  113. +48 −0 pkgs/development/python-modules/cnvkit/default.nix
  114. +23 −0 pkgs/development/python-modules/django-csp/default.nix
  115. +29 −0 pkgs/development/python-modules/emailthreads/default.nix
  116. +40 −0 pkgs/development/python-modules/flake8-polyfill/default.nix
  117. +25 −0 pkgs/development/python-modules/jsonmerge/default.nix
  118. +10 −16 pkgs/development/python-modules/osc/default.nix
  119. +23 −0 pkgs/development/python-modules/pep8-naming/default.nix
  120. +48 −0 pkgs/development/python-modules/pgpy/default.nix
  121. +5 −9 pkgs/development/python-modules/pomegranate/default.nix
  122. +24 −0 pkgs/development/python-modules/pyfaidx/default.nix
  123. +2 −15 pkgs/development/python-modules/pyslurm/default.nix
  124. +31 −0 pkgs/development/python-modules/pytest-ordering/default.nix
  125. +4 −2 pkgs/development/python-modules/snscrape/default.nix
  126. +50 −0 pkgs/development/python-modules/sqlalchemy-utils/default.nix
  127. +4 −7 pkgs/development/python-modules/urlgrabber/default.nix
  128. +0 −37 pkgs/development/python-modules/wikipedia/default.nix
  129. +1 −1 pkgs/development/tools/build-managers/bazel/default.nix
  130. +3 −3 pkgs/development/tools/build-managers/sbt-extras/default.nix
  131. +4 −2 pkgs/development/tools/castxml/default.nix
  132. +1 −1 pkgs/development/tools/misc/luarocks/darwin-3.0.x.patch
  133. +1 −1 pkgs/development/tools/misc/luarocks/darwin-3.1.3.patch
  134. +42 −0 pkgs/development/tools/misc/tinyprog/default.nix
  135. +9 −5 pkgs/development/tools/rust/cargo-expand/default.nix
  136. +5 −5 pkgs/development/tools/rust/cargo-make/default.nix
  137. +3 −3 pkgs/development/tools/skaffold/default.nix
  138. +1 −1 pkgs/misc/cups/default.nix
  139. +33 −0 pkgs/misc/vim-plugins/generated.nix
  140. +3 −0 pkgs/misc/vim-plugins/vim-plugin-names
  141. +1 −1 pkgs/os-specific/darwin/apple-source-releases/adv_cmds/boot.nix
  142. +17 −0 pkgs/os-specific/linux/device-tree/default.nix
  143. +32 −0 pkgs/os-specific/linux/device-tree/raspberrypi.nix
  144. +2 −2 pkgs/os-specific/linux/ena/default.nix
  145. +2 −2 pkgs/os-specific/linux/firmware/raspberrypi/default.nix
  146. +8 −5 pkgs/os-specific/linux/ixgbevf/default.nix
  147. +3 −0 pkgs/os-specific/linux/kernel/hardened-config.nix
  148. +2 −2 pkgs/os-specific/linux/kernel/linux-4.14.nix
  149. +2 −2 pkgs/os-specific/linux/kernel/linux-4.19.nix
  150. +2 −2 pkgs/os-specific/linux/kernel/linux-5.2.nix
  151. +19 −51 pkgs/os-specific/windows/pthread-w32/default.nix
  152. +2 −2 pkgs/servers/computing/slurm/default.nix
  153. +2 −2 pkgs/servers/http/nginx/mainline.nix
  154. +2 −2 pkgs/servers/http/nginx/stable.nix
  155. +4 −4 pkgs/servers/monitoring/zabbix/versions.nix
  156. +2 −2 pkgs/servers/mqtt/mosquitto/default.nix
  157. +3 −3 pkgs/servers/sql/pgbouncer/default.nix
  158. +1 −1 pkgs/stdenv/generic/make-derivation.nix
  159. +3 −3 pkgs/tools/X11/xkbvalidate/default.nix
  160. +18 −3 pkgs/tools/X11/xkbvalidate/xkbvalidate.c
  161. +12 −10 pkgs/tools/backup/s3ql/default.nix
  162. +26 −0 pkgs/tools/filesystems/apfs-fuse/default.nix
  163. +52 −0 pkgs/tools/misc/coreutils/avoid-false-positive-in-date-debug-test.patch
  164. +9 −4 pkgs/tools/misc/coreutils/default.nix
  165. +24 −9 pkgs/tools/misc/gparted/default.nix
  166. +12 −0 pkgs/tools/misc/gparted/polkit.patch
  167. +12 −12 pkgs/tools/misc/noti/default.nix
  168. +4 −4 pkgs/tools/misc/pazi/cargo-lock.patch
  169. +6 −4 pkgs/tools/misc/pazi/default.nix
  170. +3 −1 pkgs/tools/networking/mtr/default.nix
  171. +2 −2 pkgs/tools/system/inxi/default.nix
  172. +23 −1 pkgs/top-level/all-packages.nix
  173. +2 −0 pkgs/top-level/ocaml-packages.nix
  174. +30 −2 pkgs/top-level/python-packages.nix
18 changes: 17 additions & 1 deletion doc/functions/dockertools.xml
Original file line number Diff line number Diff line change
@@ -312,7 +312,23 @@ hello latest de2bf4786de6 About a minute ago 25.2MB
Maximum number of layers to create.
</para>
<para>
<emphasis>Default:</emphasis> <literal>24</literal>
<emphasis>Default:</emphasis> <literal>100</literal>
</para>
<para>
<emphasis>Maximum:</emphasis> <literal>125</literal>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<varname>extraCommands</varname> <emphasis>optional</emphasis>
</term>
<listitem>
<para>
Shell commands to run while building the final layer, without access
to most of the layer contents. Changes to this layer are "on top"
of all the other layers, so can create additional directories
and files.
</para>
</listitem>
</varlistentry>
5 changes: 5 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
@@ -1484,6 +1484,11 @@
github = "eadwu";
name = "Edmund Wu";
};
ealasu = {
email = "emanuel.alasu@gmail.com";
github = "ealasu";
name = "Emanuel Alasu";
};
eamsden = {
email = "edward@blackriversoft.com";
github = "eamsden";
13 changes: 7 additions & 6 deletions nixos/doc/manual/installation/installing.xml
Original file line number Diff line number Diff line change
@@ -29,13 +29,14 @@
</para>

<para>
You are logged-in automatically as <literal>root</literal>. (The
<literal>root</literal> user account has an empty password.)
You are logged-in automatically as <literal>nixos</literal>.
The <literal>nixos</literal> user account has an empty password so you
can use <command>sudo</command> without a password.
</para>

<para>
If you downloaded the graphical ISO image, you can run <command>systemctl
start display-manager</command> to start KDE. If you want to continue on the
start display-manager</command> to start the desktop environment. If you want to continue on the
terminal, you can use <command>loadkeys</command> to switch to your
preferred keyboard layout. (We even provide neo2 via <command>loadkeys de
neo</command>!)
@@ -65,9 +66,9 @@

<para>
If you would like to continue the installation from a different machine you
need to activate the SSH daemon via <literal>systemctl start
sshd</literal>. In order to be able to login you also need to set a
password for <literal>root</literal> using <literal>passwd</literal>.
need to activate the SSH daemon via <command>systemctl start
sshd</command>. You then must set a password for either <literal>root</literal> or
<literal>nixos</literal> with <command>passwd></command> to be able to login.
</para>
</section>
</section>
16 changes: 16 additions & 0 deletions nixos/doc/manual/man-nixos-enter.xml
Original file line number Diff line number Diff line change
@@ -34,6 +34,12 @@
</arg>
<replaceable>shell-command</replaceable>
</arg>

<arg>
<arg choice='plain'>
<option>--silent</option>
</arg>
</arg>

<arg>
<arg choice='plain'>
@@ -100,6 +106,16 @@
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<option>--silent</option>
</term>
<listitem>
<para>
Suppresses all output from the activation script of the target system.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<option>--</option>
15 changes: 15 additions & 0 deletions nixos/doc/manual/release-notes/rl-1909.xml
Original file line number Diff line number Diff line change
@@ -42,6 +42,12 @@
set up binfmt interpreters for each of those listed systems.
</para>
</listitem>
<listitem>
<para>
The installer now uses a less privileged <literal>nixos</literal> user whereas before we logged in as root.
To gain root privileges use <literal>sudo -i</literal> without a password.
</para>
</listitem>
</itemizedlist>
</section>

@@ -248,6 +254,15 @@
If IBus support in Qt 4.x applications is required, add the <literal>ibus-qt</literal> package to your <xref linkend="opt-environment.systemPackages" /> manually.
</para>
</listitem>
<listitem>
<para>
The CUPS Printing service now uses socket-based activation by
default, only starting when needed. The previous behavior can
be restored by setting
<option>services.cups.startWhenNeeded</option> to
<literal>false</literal>.
</para>
</listitem>
</itemizedlist>
</section>

56 changes: 56 additions & 0 deletions nixos/modules/hardware/device-tree.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{ config, lib, pkgs, ... }:

with lib;

let
cfg = config.hardware.deviceTree;
in {
options = {
hardware.deviceTree = {
enable = mkOption {
default = pkgs.stdenv.hostPlatform.platform.kernelDTB or false;
type = types.bool;
description = ''
Build device tree files. These are used to describe the
non-discoverable hardware of a system.
'';
};

base = mkOption {
default = "${config.boot.kernelPackages.kernel}/dtbs";
defaultText = "\${config.boot.kernelPackages.kernel}/dtbs";
example = literalExample "pkgs.deviceTree_rpi";
type = types.path;
description = ''
The package containing the base device-tree (.dtb) to boot. Contains
device trees bundled with the Linux kernel by default.
'';
};

overlays = mkOption {
default = [];
example = literalExample
"[\"\${pkgs.deviceTree_rpi.overlays}/w1-gpio.dtbo\"]";
type = types.listOf types.path;
description = ''
A path containing device tree overlays (.dtbo) to be applied to all
base device-trees.
'';
};

package = mkOption {
default = null;
type = types.nullOr types.path;
internal = true;
description = ''
A path containing the result of applying `overlays` to `base`.
'';
};
};
};

config = mkIf (cfg.enable) {
hardware.deviceTree.package = if (cfg.overlays != [])
then pkgs.deviceTree.applyOverlays cfg.base cfg.overlays else cfg.base;
};
}
19 changes: 16 additions & 3 deletions nixos/modules/installer/cd-dvd/installation-cd-graphical-base.nix
Original file line number Diff line number Diff line change
@@ -8,16 +8,30 @@ with lib;
{
imports = [ ./installation-cd-base.nix ];

# Whitelist wheel users to do anything
# This is useful for things like pkexec
#
# WARNING: this is dangerous for systems
# outside the installation-cd and shouldn't
# be used anywhere else.
security.polkit.extraConfig = ''
polkit.addRule(function(action, subject) {
if (subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
});
'';

services.xserver = {
enable = true;

# Don't start the X server by default.
autorun = mkForce false;

# Automatically login as root.
# Automatically login as nixos.
displayManager.slim = {
enable = true;
defaultUser = "root";
defaultUser = "nixos";
autoLogin = true;
};

@@ -33,7 +47,6 @@ with lib;

# Enable sound in graphical iso's.
hardware.pulseaudio.enable = true;
hardware.pulseaudio.systemWide = true; # Needed since we run plasma as root.

environment.systemPackages = [
# Include gparted for partitioning disks.
17 changes: 11 additions & 6 deletions nixos/modules/installer/cd-dvd/installation-cd-graphical-kde.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This module defines a NixOS installation CD that contains X11 and
# Plasma5.
# Plasma 5.

{ config, lib, pkgs, ... }:

@@ -30,15 +30,20 @@ with lib;
Version=1.0
Type=Application
Name=NixOS Manual
Exec=firefox ${config.system.build.manual.manualHTMLIndex}
Exec=firefox ${config.system.build.manual.manual}/share/doc/nixos/index.html
Icon=text-html
'';

homeDir = "/home/nixos/";
desktopDir = homeDir + "Desktop/";

in ''
mkdir -p /root/Desktop
ln -sfT ${manualDesktopFile} /root/Desktop/nixos-manual.desktop
ln -sfT ${pkgs.konsole}/share/applications/org.kde.konsole.desktop /root/Desktop/org.kde.konsole.desktop
ln -sfT ${pkgs.gparted}/share/applications/gparted.desktop /root/Desktop/gparted.desktop
mkdir -p ${desktopDir}
chown nixos ${homeDir} ${desktopDir}
ln -sfT ${manualDesktopFile} ${desktopDir + "nixos-manual.desktop"}
ln -sfT ${pkgs.gparted}/share/applications/gparted.desktop ${desktopDir + "gparted.desktop"}
ln -sfT ${pkgs.konsole}/share/applications/org.kde.konsole.desktop ${desktopDir + "org.kde.konsole.desktop"}
'';

}
21 changes: 17 additions & 4 deletions nixos/modules/installer/tools/nixos-enter.sh
Original file line number Diff line number Diff line change
@@ -16,7 +16,8 @@ fi

mountPoint=/mnt
system=/nix/var/nix/profiles/system
command=($system/sw/bin/bash "--login")
command=("$system/sw/bin/bash" "--login")
silent=0

while [ "$#" -gt 0 ]; do
i="$1"; shift 1
@@ -32,9 +33,12 @@ while [ "$#" -gt 0 ]; do
exit 1
;;
--command|-c)
command=($system/sw/bin/bash "-c" "$1")
command=("$system/sw/bin/bash" "-c" "$1")
shift 1
;;
--silent)
silent=1
;;
--)
command=("$@")
break
@@ -51,11 +55,20 @@ if [[ ! -e $mountPoint/etc/NIXOS ]]; then
exit 126
fi

mkdir -m 0755 -p "$mountPoint/dev" "$mountPoint/sys"
mkdir -p "$mountPoint/dev" "$mountPoint/sys"
chmod 0755 "$mountPoint/dev" "$mountPoint/sys"
mount --rbind /dev "$mountPoint/dev"
mount --rbind /sys "$mountPoint/sys"

# If silent, write both stdout and stderr of activation script to /dev/null
# otherwise, write both streams to stderr of this process
if [ "$silent" -eq 0 ]; then
PIPE_TARGET="/dev/stderr"
else
PIPE_TARGET="/dev/null"
fi

# Run the activation script. Set $LOCALE_ARCHIVE to supress some Perl locale warnings.
LOCALE_ARCHIVE=$system/sw/lib/locale/locale-archive chroot "$mountPoint" "$system/activate" >&2 || true
LOCALE_ARCHIVE="$system/sw/lib/locale/locale-archive" chroot "$mountPoint" "$system/activate" >>$PIPE_TARGET 2>&1 || true

exec chroot "$mountPoint" "${command[@]}"
2 changes: 2 additions & 0 deletions nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
@@ -46,6 +46,7 @@
./hardware/cpu/amd-microcode.nix
./hardware/cpu/intel-microcode.nix
./hardware/digitalbitbox.nix
./hardware/device-tree.nix
./hardware/sensor/iio.nix
./hardware/ksm.nix
./hardware/ledger.nix
@@ -111,6 +112,7 @@
./programs/firejail.nix
./programs/fish.nix
./programs/freetds.nix
./programs/fuse.nix
./programs/gnome-disks.nix
./programs/gnome-documents.nix
./programs/gpaste.nix
6 changes: 6 additions & 0 deletions nixos/modules/profiles/hardened.nix
Original file line number Diff line number Diff line change
@@ -44,6 +44,9 @@ with lib;

# Disable legacy virtual syscalls
"vsyscall=none"

# Enable page allocator randomization
"page_alloc.shuffle=1"
];

boot.blacklistedKernelModules = [
@@ -121,4 +124,7 @@ with lib;
# Ignore outgoing ICMP redirects (this is ipv4 only)
boot.kernel.sysctl."net.ipv4.conf.all.send_redirects" = mkDefault false;
boot.kernel.sysctl."net.ipv4.conf.default.send_redirects" = mkDefault false;

# Restrict userfaultfd syscalls to processes with the SYS_PTRACE capability
boot.kernel.sysctl."vm.unprivileged_userfaultfd" = mkDefault false;
}
27 changes: 20 additions & 7 deletions nixos/modules/profiles/installation-device.nix
Original file line number Diff line number Diff line change
@@ -32,19 +32,35 @@ with lib;
#services.rogue.enable = true;

# Disable some other stuff we don't need.
security.sudo.enable = mkDefault false;
services.udisks2.enable = mkDefault false;

# Use less privileged nixos user
users.users.nixos = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" "video" ];
# Allow the graphical user to login without password
initialHashedPassword = "";
};

# Allow the user to log in as root without a password.
users.users.root.initialHashedPassword = "";

# Allow passwordless sudo from nixos user
security.sudo = {
enable = mkDefault true;
wheelNeedsPassword = mkForce false;
};

# Automatically log in at the virtual consoles.
services.mingetty.autologinUser = "root";
services.mingetty.autologinUser = "nixos";

# Some more help text.
services.mingetty.helpLine =
''
The "root" account has an empty password. ${
The "nixos" and "root" account have empty passwords. ${
optionalString config.services.xserver.enable
"Type `systemctl start display-manager' to\nstart the graphical user interface."}
"Type `sudo systemctl start display-manager' to\nstart the graphical user interface."}
'';

# Allow sshd to be started manually through "systemctl start sshd".
@@ -86,8 +102,5 @@ with lib;
# because we have the firewall enabled. This makes installs from the
# console less cumbersome if the machine has a public IP.
networking.firewall.logRefusedConnections = mkDefault false;

# Allow the user to log in as root without a password.
users.users.root.initialHashedPassword = "";
};
}
Loading