+1
-1
doc/contributing/coding-conventions.chapter.md
+1
-1
doc/contributing/coding-conventions.chapter.md
···-- Filling lists condionally _should_ be done with `lib.optional(s)` instead of using `if cond then [ ... ] else null` or `if cond then [ ... ] else [ ]`.+- Building lists conditionally _should_ be done with `lib.optional(s)` instead of using `if cond then [ ... ] else null` or `if cond then [ ... ] else [ ]`.
+20
-7
nixos/doc/manual/from_md/release-notes/rl-2111.section.xml
+20
-7
nixos/doc/manual/from_md/release-notes/rl-2111.section.xml
···+<link xlink:href="options.html#opt-virtualisation.additionalPaths"><literal>virtualisation.additionalPaths</literal></link>.···-(<link xlink:href="options.html#opt-virtualisation.forwardPorts"><literal>virtualisation.forwardPorts</literal></link>),+<link xlink:href="options.html#opt-virtualisation.forwardPorts"><literal>forwardPorts</literal></link>+<link xlink:href="options.html#opt-virtualisation.sharedDirectories"><literal>sharedDirectories</literal></link>-(<link xlink:href="options.html#opt-virtualisation.sharedDirectories"><literal>virtualisation.sharedDirectories</literal></link>),+<link xlink:href="options.html#opt-virtualisation.resolution"><literal>resolution</literal></link>-(<link xlink:href="options.html#opt-virtualisation.resolution"><literal>virtualisation.resolution</literal></link>).+<link xlink:href="options.html#opt-virtualisation.useNixStoreImage"><literal>useNixStoreImage</literal></link>
+8
-4
nixos/doc/manual/release-notes/rl-2111.section.md
+8
-4
nixos/doc/manual/release-notes/rl-2111.section.md
···- Nextcloud 20 (`pkgs.nextcloud20`) has been dropped because it was EOLed by upstream in 2021-10.- The linux kernel package infrastructure was moved out of `all-packages.nix`, and restructured. Linux related functions and attributes now live under the `pkgs.linuxKernel` attribute set.In particular the versioned `linuxPackages_*` package sets (such as `linuxPackages_5_4`) and kernels from `pkgs` were moved there and now live under `pkgs.linuxKernel.packages.*`. The unversioned ones (such as `linuxPackages_latest`) remain untouched.-- In NixOS virtual machines (QEMU), the `virtualisation` module has been updated with new options to configure:-- IPv4 port forwarding ([`virtualisation.forwardPorts`](options.html#opt-virtualisation.forwardPorts)),-- shared host directories ([`virtualisation.sharedDirectories`](options.html#opt-virtualisation.sharedDirectories)),-- screen resolution ([`virtualisation.resolution`](options.html#opt-virtualisation.resolution)).+- In NixOS virtual machines (QEMU), the `virtualisation` module has been updated with new options:+- [`forwardPorts`](options.html#opt-virtualisation.forwardPorts) to configure IPv4 port forwarding,+- [`sharedDirectories`](options.html#opt-virtualisation.sharedDirectories) to set up shared host directories,+- [`useNixStoreImage`](options.html#opt-virtualisation.useNixStoreImage) to use a disk image for the Nix store instead of 9P.In addition, the default [`msize`](options.html#opt-virtualisation.msize) parameter in 9P filesystems (including /nix/store and all shared directories) has been increased to 16K for improved performance.
+65
-23
nixos/lib/make-disk-image.nix
+65
-23
nixos/lib/make-disk-image.nix
······assert partitionTableType == "legacy" || partitionTableType == "legacy+gpt" || partitionTableType == "efi" || partitionTableType == "hybrid" || partitionTableType == "none";······-closureInfo = pkgs.closureInfo { rootPaths = [ config.system.build.toplevel channelSources ]; };······-cptofs -p ${optionalString (partitionTableType != "none") "-P ${rootPartition}"} -t ${fsType} -i $diskImage $root/* / ||···-NIXOS_INSTALL_BOOTLOADER=1 nixos-enter --root $mountPoint -- /nix/var/nix/profiles/system/bin/switch-to-configuration boot+NIXOS_INSTALL_BOOTLOADER=1 nixos-enter --root $mountPoint -- /nix/var/nix/profiles/system/bin/switch-to-configuration boot-# The above scripts will generate a random machine-id and we don't want to bake a single ID into all our images+# The above scripts will generate a random machine-id and we don't want to bake a single ID into all our images···
+19
nixos/lib/testing-python.nix
+19
nixos/lib/testing-python.nix
···
+70
-10
nixos/modules/virtualisation/qemu-vm.nix
+70
-10
nixos/modules/virtualisation/qemu-vm.nix
···+${qemu}/bin/qemu-img create -f qcow2 -F qcow2 -b ${storeImage}/nixos.qcow2 "$TMPDIR"/store.img······+(mkRenamedOptionModule [ "virtualisation" "pathsInNixDB" ] [ "virtualisation" "additionalPaths" ])··················options = [ "mode=1777" "strictatime" "nosuid" "nodev" "size=${toString config.boot.tmpOnTmpfsSize}" ];
+1
-1
nixos/tests/containers-bridge.nix
+1
-1
nixos/tests/containers-bridge.nix
+1
-1
nixos/tests/containers-extra_veth.nix
+1
-1
nixos/tests/containers-extra_veth.nix
+1
-1
nixos/tests/containers-imperative.nix
+1
-1
nixos/tests/containers-imperative.nix
···
+1
-1
nixos/tests/containers-ip.nix
+1
-1
nixos/tests/containers-ip.nix
···
+1
-1
nixos/tests/containers-portforward.nix
+1
-1
nixos/tests/containers-portforward.nix
+1
-1
nixos/tests/containers-tmpfs.nix
+1
-1
nixos/tests/containers-tmpfs.nix
+2
nixos/tests/discourse.nix
+2
nixos/tests/discourse.nix
+2
nixos/tests/gitlab.nix
+2
nixos/tests/gitlab.nix
···
+2
-2
pkgs/applications/misc/openlp/lib.nix
+2
-2
pkgs/applications/misc/openlp/lib.nix
······
+1
-1
pkgs/applications/misc/pytrainer/default.nix
+1
-1
pkgs/applications/misc/pytrainer/default.nix
+3
-3
pkgs/applications/networking/feedreaders/newsboat/default.nix
+3
-3
pkgs/applications/networking/feedreaders/newsboat/default.nix
···
+3
-3
pkgs/applications/science/math/pcalc/default.nix
+3
-3
pkgs/applications/science/math/pcalc/default.nix
···
+2
-2
pkgs/applications/version-management/gitea/default.nix
+2
-2
pkgs/applications/version-management/gitea/default.nix
···# not fetching directly from the git repo, because that lacks several vendor files for the web UIurl = "https://github.com/go-gitea/gitea/releases/download/v${version}/gitea-src-${version}.tar.gz";
+82
pkgs/build-support/trivial-builders.nix
+82
pkgs/build-support/trivial-builders.nix
···+# Taken from https://github.com/NixOS/nix/blob/130284b8508dad3c70e8160b15f3d62042fc730a/src/libutil/hash.cc#L84+allPaths = lib.concatStringsSep "\n" (lib.unique (sources ++ namedOutputPaths ++ outputPaths));
+21
-5
pkgs/build-support/trivial-builders/test.nix
+21
-5
pkgs/build-support/trivial-builders/test.nix
···
+6
pkgs/build-support/trivial-builders/test/sample.nix
+6
pkgs/build-support/trivial-builders/test/sample.nix
······
+2
-2
pkgs/development/compilers/gcc/8/default.nix
+2
-2
pkgs/development/compilers/gcc/8/default.nix
······
+19
pkgs/development/ocaml-modules/dune-site/default.nix
+19
pkgs/development/ocaml-modules/dune-site/default.nix
···
+2
-2
pkgs/development/python-modules/aionotion/default.nix
+2
-2
pkgs/development/python-modules/aionotion/default.nix
······
+2
-2
pkgs/development/python-modules/aioridwell/default.nix
+2
-2
pkgs/development/python-modules/aioridwell/default.nix
······
+2
-2
pkgs/development/python-modules/aiowatttime/default.nix
+2
-2
pkgs/development/python-modules/aiowatttime/default.nix
······
+2
-2
pkgs/development/python-modules/bugwarrior/default.nix
+2
-2
pkgs/development/python-modules/bugwarrior/default.nix
······
+2
-2
pkgs/development/python-modules/buildbot/default.nix
+2
-2
pkgs/development/python-modules/buildbot/default.nix
······
+2
-2
pkgs/development/python-modules/deltachat/default.nix
+2
-2
pkgs/development/python-modules/deltachat/default.nix
+9
-11
pkgs/development/python-modules/dogpile.cache/default.nix
pkgs/development/python-modules/dogpile-cache/default.nix
+9
-11
pkgs/development/python-modules/dogpile.cache/default.nix
pkgs/development/python-modules/dogpile-cache/default.nix
·········
+6
-2
pkgs/development/python-modules/dogpile.core/default.nix
pkgs/development/python-modules/dogpile-core/default.nix
+6
-2
pkgs/development/python-modules/dogpile.core/default.nix
pkgs/development/python-modules/dogpile-core/default.nix
···
+1
-1
pkgs/development/python-modules/imapclient/default.nix
+1
-1
pkgs/development/python-modules/imapclient/default.nix
+2
-2
pkgs/development/python-modules/mailsuite/default.nix
+2
-2
pkgs/development/python-modules/mailsuite/default.nix
+2
-2
pkgs/development/python-modules/openstacksdk/default.nix
+2
-2
pkgs/development/python-modules/openstacksdk/default.nix
······
+2
-2
pkgs/development/python-modules/oslo-db/default.nix
+2
-2
pkgs/development/python-modules/oslo-db/default.nix
······
+2
-2
pkgs/development/python-modules/parsedmarc/default.nix
+2
-2
pkgs/development/python-modules/parsedmarc/default.nix
······
+2
-2
pkgs/development/python-modules/phonopy/default.nix
+2
-2
pkgs/development/python-modules/phonopy/default.nix
···
+2
-2
pkgs/development/python-modules/python-ironicclient/default.nix
+2
-2
pkgs/development/python-modules/python-ironicclient/default.nix
+2
-2
pkgs/development/python-modules/subliminal/default.nix
+2
-2
pkgs/development/python-modules/subliminal/default.nix
······
+8
-8
pkgs/development/tools/electron/default.nix
+8
-8
pkgs/development/tools/electron/default.nix
···
+3
-3
pkgs/development/tools/misc/terraform-ls/default.nix
+3
-3
pkgs/development/tools/misc/terraform-ls/default.nix
···
+2
-2
pkgs/misc/screensavers/xscreensaver/default.nix
+2
-2
pkgs/misc/screensavers/xscreensaver/default.nix
···
+3
-3
pkgs/tools/misc/tz/default.nix
+3
-3
pkgs/tools/misc/tz/default.nix
···
+2
-2
pkgs/tools/misc/yubikey-manager-qt/default.nix
+2
-2
pkgs/tools/misc/yubikey-manager-qt/default.nix
···
+1
-1
pkgs/tools/package-management/nox/default.nix
+1
-1
pkgs/tools/package-management/nox/default.nix
+2
pkgs/top-level/ocaml-packages.nix
+2
pkgs/top-level/ocaml-packages.nix
···
+18
-15
pkgs/top-level/python-aliases.nix
+18
-15
pkgs/top-level/python-aliases.nix
···-blockdiagcontrib-cisco = throw "blockdiagcontrib-cisco is not compatible with blockdiag 2.0.0 and has been removed."; # Added 2020-11-29+blockdiagcontrib-cisco = throw "blockdiagcontrib-cisco is not compatible with blockdiag 2.0.0 and has been removed."; # added 2020-11-29-bugseverywhere = throw "bugseverywhere has been removed: Abandoned by upstream."; # Added 2019-11-27+bugseverywhere = throw "bugseverywhere has been removed: Abandoned by upstream."; # added 2019-11-27detox = throw "detox is no longer maintained, and was broken since may 2019"; # added 2020-07-04pylibgen = throw "pylibgen is unmaintained upstreamed, and removed from nixpkgs"; # added 2020-06-20···rotate-backups = throw "pythonPackages.rotate-backups was removed in favor of the top-level rotate-backups"; # added 2021-07-01-selectors34 = throw "selectors34 has been removed: functionality provided by Python itself; archived by upstream."; # Added 2021-06-10+selectors34 = throw "selectors34 has been removed: functionality provided by Python itself; archived by upstream."; # added 2021-06-10
+4
-4
pkgs/top-level/python-packages.nix
+4
-4
pkgs/top-level/python-packages.nix
·········sqlalchemy-jsonfield = callPackage ../development/python-modules/sqlalchemy-jsonfield { };